use of org.jctools.queues.MpscBlockingConsumerArrayQueue in project ignite-3 by apache.
the class SingleThreadExecutorBenchmark method defaultSingleThreadPollExecutorWithMpscBlockingQueue.
@Benchmark
public void defaultSingleThreadPollExecutorWithMpscBlockingQueue() throws InterruptedException {
ThreadPoolExecutor pool = //
ThreadPoolUtil.newBuilder().coreThreads(//
1).maximumThreads(//
1).poolName(//
"default").enableMetric(//
false).workQueue(// TODO asch IGNITE-15997
new MpscBlockingConsumerArrayQueue<>(TIMES)).keepAliveSeconds(//
60L).threadFactory(//
new NamedThreadFactory("default", true)).build();
execute(new DefaultSingleThreadExecutor(pool));
}
Aggregations