| Modifier and Type | Field and Description |
|---|---|
| private final Semaphore |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | beforeExecute(final AbstractThreadPool.
Overrides org. Method invoked prior to executing the given Runnable in the given thread. |
| public void | execute(Runnable command)
Overrides org. Implements java. Executes the given command at some time in the future. |
| queuePermits | back to summary |
|---|---|
| private final Semaphore queuePermits | |
| QueueLimitedThreadPool | back to summary |
|---|---|
pack-priv QueueLimitedThreadPool(ThreadPoolConfig config)
| |
| beforeExecute | back to summary |
|---|---|
| protected void beforeExecute(final AbstractThreadPool. Overrides org. Doc from org. Method invoked prior to executing the given Runnable in the given thread. This method is invoked by thread t that will execute task r, and may be used to re-initialize ThreadLocals, or to perform logging. This implementation does nothing, but may be customized in subclasses. Note To properly nest multiple overridings, subclasses should generally invoke super.beforeExecute at the end of this method.
| |
| execute | back to summary |
|---|---|
| public void execute(Runnable command) Overrides org. Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the
| |