Interface DynamicExecutor


public interface DynamicExecutor
The executor interface to provide concurrent functionality.
  • Field Details

    • NUMBER_OF_CORES

      static final int NUMBER_OF_CORES
      Gets the number of available cores. (not always the same as the maximum number of cores)
    • CORE_POOL_SIZE

      static final int CORE_POOL_SIZE
      Core pool size for the executor.
      See Also:
    • MAXIMUM_POOL_SIZE

      static final int MAXIMUM_POOL_SIZE
      Maximum pool size for the executor.
      See Also:
    • BACKUP_POOL_SIZE

      static final int BACKUP_POOL_SIZE
      Backup pool size for the executor.
      See Also:
    • WORK_QUEUE

      static final BlockingQueue<Runnable> WORK_QUEUE
      Instantiates the queue of Runnables as a SynchronousQueue.
    • BACKUP_WORK_QUEUE

      static final BlockingQueue<Runnable> BACKUP_WORK_QUEUE
      Instantiates the queue of Runnables as a LinkedBlockingDeque.
    • KEEP_ALIVE

      static final long KEEP_ALIVE
      The amount of time an idle thread waits before terminating.
      See Also:
    • KEEP_ALIVE_UNIT

      static final TimeUnit KEEP_ALIVE_UNIT
      The keep alive time unit.
    • THREAD_FACTORY

      static final ThreadFactory THREAD_FACTORY
      Thread factory for the backup pool executor.
  • Method Details

    • getDefaultExecutor

      @NonNull ExecutorService getDefaultExecutor()
      Returns the default executor service.
      Returns:
      The default executor service.