org.glassfish.grizzly.threadpool
Class FixedThreadPool
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.glassfish.grizzly.threadpool.AbstractThreadPool
org.glassfish.grizzly.threadpool.FixedThreadPool
- All Implemented Interfaces:
- Thread.UncaughtExceptionHandler, Executor, ExecutorService, JmxMonitoringAware<ThreadPoolProbe>, MonitoringAware<ThreadPoolProbe>
public class FixedThreadPool
- extends AbstractThreadPool
Minimalistic fixed thread pool to allow for nice scalability if a
good Queue impl is used.
- Author:
- gustav trede
| Fields inherited from class org.glassfish.grizzly.threadpool.AbstractThreadPool |
config, DEFAULT_IDLE_THREAD_KEEPALIVE_TIMEOUT, DEFAULT_MAX_TASKS_QUEUED, DEFAULT_MAX_THREAD_COUNT, DEFAULT_MIN_THREAD_COUNT, delayedQueue, monitoringConfig, poison, running, stateLock, stateLockCondition, transactionTimeoutMillis, workers |
| Methods inherited from class org.glassfish.grizzly.threadpool.AbstractThreadPool |
afterExecute, awaitTermination, beforeExecute, drain, getConfig, getDefaultThreadFactory, getMonitoringConfig, getQueue, isShutdown, isTerminated, nextThreadId, onMaxNumberOfThreadsReached, onTaskCompletedEvent, onTaskDequeued, onTaskQueued, onTaskQueueOverflow, onWorkerExit, onWorkerStarted, poisonAll, shutdown, shutdownNow, startWorker, toString, uncaughtException, validateNewPoolSize |
workQueue
protected final BlockingQueue<Runnable> workQueue
FixedThreadPool
public FixedThreadPool(ThreadPoolConfig config)
execute
public void execute(Runnable command)
Copyright © 2012 Oracle Corporation. All Rights Reserved.