Class MockSinglePrioritizingExecutor

java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor
org.elasticsearch.cluster.coordination.MockSinglePrioritizingExecutor
All Implemented Interfaces:
Executor, ExecutorService

public class MockSinglePrioritizingExecutor extends org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor
Mock single threaded PrioritizedEsThreadPoolExecutor based on DeterministicTaskQueue, simulating the behaviour of an executor returned by EsExecutors.newSinglePrioritizing(java.lang.String, java.util.concurrent.ThreadFactory, org.elasticsearch.common.util.concurrent.ThreadContext, java.util.concurrent.ScheduledExecutorService, org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor.StarvationWatcher).
  • Constructor Details

    • MockSinglePrioritizingExecutor

      public MockSinglePrioritizingExecutor(String nodeName, String nodeId, DeterministicTaskQueue deterministicTaskQueue, org.elasticsearch.threadpool.ThreadPool threadPool)
  • Method Details