Interface DynamicExecutor
-
public interface DynamicExecutorThe executor interface to provide concurrent functionality.
-
-
Field Summary
Fields Modifier and Type Field Description static intBACKUP_POOL_SIZEBackup pool size for the executor.static java.util.concurrent.BlockingQueue<java.lang.Runnable>BACKUP_WORK_QUEUEInstantiates the queue of Runnables as aLinkedBlockingDeque.static intCORE_POOL_SIZECore pool size for the executor.static longKEEP_ALIVEThe amount of time an idle thread waits before terminating.static java.util.concurrent.TimeUnitKEEP_ALIVE_UNITThe keep alive time unit.static intMAXIMUM_POOL_SIZEMaximum pool size for the executor.static intNUMBER_OF_CORESGets the number of available cores.static java.util.concurrent.ThreadFactoryTHREAD_FACTORYThread factory for the backup pool executor.static java.util.concurrent.BlockingQueue<java.lang.Runnable>WORK_QUEUEInstantiates the queue of Runnables as aSynchronousQueue.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.ExecutorServicegetDefaultExecutor()Returns the default executor service.
-
-
-
Field Detail
-
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:
- Constant Field Values
-
MAXIMUM_POOL_SIZE
static final int MAXIMUM_POOL_SIZE
Maximum pool size for the executor.- See Also:
- Constant Field Values
-
BACKUP_POOL_SIZE
static final int BACKUP_POOL_SIZE
Backup pool size for the executor.- See Also:
- Constant Field Values
-
WORK_QUEUE
static final java.util.concurrent.BlockingQueue<java.lang.Runnable> WORK_QUEUE
Instantiates the queue of Runnables as aSynchronousQueue.
-
BACKUP_WORK_QUEUE
static final java.util.concurrent.BlockingQueue<java.lang.Runnable> BACKUP_WORK_QUEUE
Instantiates the queue of Runnables as aLinkedBlockingDeque.
-
KEEP_ALIVE
static final long KEEP_ALIVE
The amount of time an idle thread waits before terminating.- See Also:
- Constant Field Values
-
KEEP_ALIVE_UNIT
static final java.util.concurrent.TimeUnit KEEP_ALIVE_UNIT
The keep alive time unit.
-
THREAD_FACTORY
static final java.util.concurrent.ThreadFactory THREAD_FACTORY
Thread factory for the backup pool executor.
-
-