public class FixedThreadPool extends AbstractThreadPool
AbstractThreadPool.Worker| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.BlockingQueue<java.lang.Runnable> |
workQueue |
config, DEFAULT_IDLE_THREAD_KEEPALIVE_TIMEOUT, DEFAULT_MAX_TASKS_QUEUED, DEFAULT_MAX_THREAD_COUNT, DEFAULT_MIN_THREAD_COUNT, delayedQueue, monitoringConfig, poison, running, stateLock, transactionTimeoutMillis, workers| Constructor and Description |
|---|
FixedThreadPool(ThreadPoolConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command) |
afterExecute, awaitTermination, beforeExecute, drain, getConfig, getDefaultThreadFactory, getMonitoringConfig, getQueue, getSize, isShutdown, isTerminated, onMaxNumberOfThreadsReached, onTaskCancelled, onTaskCompletedEvent, onTaskDequeued, onTaskQueued, onTaskQueueOverflow, onWorkerExit, onWorkerStarted, poisonAll, shutdown, shutdownNow, startWorker, toString, uncaughtException, validateNewPoolSizeprotected final java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue
public FixedThreadPool(ThreadPoolConfig config)
Copyright © 2018 Oracle Corporation. All Rights Reserved.