Class ConcurrentMergeScheduler.CachedExecutor

java.lang.Object
org.apache.lucene.index.ConcurrentMergeScheduler.CachedExecutor
All Implemented Interfaces:
Executor
Enclosing class:
ConcurrentMergeScheduler

private class ConcurrentMergeScheduler.CachedExecutor extends Object implements Executor
This executor provides intra-merge threads for parallel execution of merge tasks. It provides a limited number of threads to execute merge tasks. In particular, if the number of `mergeThreads` is equal to `maxThreadCount`, then the executor will execute the merge task in the calling thread.
  • Field Details

  • Constructor Details

    • CachedExecutor

      public CachedExecutor()
  • Method Details

    • shutdown

      void shutdown()
    • execute

      public void execute(Runnable command)
      Specified by:
      execute in interface Executor