public class FixedThreadPool extends AbstractThreadPool
AbstractThreadPool.Worker
Modifier and Type | Field and Description |
---|---|
protected BlockingQueue<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(Runnable command) |
afterExecute, awaitTermination, beforeExecute, drain, getConfig, getDefaultThreadFactory, getMonitoringConfig, getQueue, isShutdown, isTerminated, onMaxNumberOfThreadsReached, onTaskCompletedEvent, onTaskDequeued, onTaskQueued, onTaskQueueOverflow, onWorkerExit, onWorkerStarted, poisonAll, shutdown, shutdownNow, startWorker, toString, uncaughtException, validateNewPoolSize
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
protected final BlockingQueue<Runnable> workQueue
public FixedThreadPool(ThreadPoolConfig config)
public void execute(Runnable command)
Copyright © 2014 Oracle Corporation. All rights reserved.