Class CurrentThreadPoolExecutor

  • All Implemented Interfaces:
    Executor, ExecutorService

    public class CurrentThreadPoolExecutor
    extends ThreadPoolExecutor
    A thread pool for executing the tasks by the submitting thread. Unfortunately a single threaded pool ( Executors.newSingleThreadExecutor() does not work since the pool is used recursively and the pool thread blocks when submitting a task to the pool itself.
    Author:
    Ulrich Kreher
    • Constructor Detail

      • CurrentThreadPoolExecutor

        public CurrentThreadPoolExecutor()
        Creates a new thread pool executing commands by the submitting thread.