|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
org.glassfish.grizzly.threadpool.AbstractThreadPool
org.glassfish.grizzly.threadpool.FixedThreadPool
public class FixedThreadPool
Minimalistic fixed thread pool to allow for nice scalability if a good Queue impl is used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.glassfish.grizzly.threadpool.AbstractThreadPool |
|---|
AbstractThreadPool.Worker |
| Field Summary | |
|---|---|
protected java.util.concurrent.BlockingQueue<java.lang.Runnable> |
workQueue
|
| 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 |
| Constructor Summary | |
|---|---|
FixedThreadPool(ThreadPoolConfig config)
|
|
| Method Summary | |
|---|---|
void |
execute(java.lang.Runnable command)
|
| 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 |
| Methods inherited from class java.util.concurrent.AbstractExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue
| Constructor Detail |
|---|
public FixedThreadPool(ThreadPoolConfig config)
| Method Detail |
|---|
public void execute(java.lang.Runnable command)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||