Class ThreadPool


  • public class ThreadPool
    extends Object
    • Field Detail

      • batchContextStack

        protected ThreadLocal<Stack<step.threadpool.ThreadPool.BatchContext>> batchContextStack
    • Method Detail

      • consumeWork

        public <WORK_ITEM> void consumeWork​(Iterator<WORK_ITEM> workItemIterator,
                                            WorkerItemConsumerFactory<WORK_ITEM> workItemConsumerFactory,
                                            int numberOfThreads)
      • isReentrantThread

        protected boolean isReentrantThread()
        Returns:
        true if the current thread is a reentrant thread. A Thread is called "reentrant" when it is already managed by a ThreadPool
      • getAutoNumberOfThreads

        protected Integer getAutoNumberOfThreads()
      • pushBatchContextToStack

        protected Stack<step.threadpool.ThreadPool.BatchContext> pushBatchContextToStack​(step.threadpool.ThreadPool.BatchContext batchContext)