| Access | Constructor and Description |
|---|---|
| public | WorkerPoolExecutor(final int corePoolSize, final int maximumPoolSize, final long keepAliveTime, final TimeUnit unit, final BlockingQueue<Runnable> workQueue, final ThreadFactory threadFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | afterExecute(final Runnable
the runnable that has completed r, final Throwable the exception that caused termination, or null if
execution completed normally t)Overrides java. |
| protected void | beforeExecute(final Thread
the thread that will run task t, final Runnable rthe task that will be executed r)Overrides java. |
| public Set |
| workerSet | back to summary |
|---|---|
| private final Map<Worker, Boolean> workerSet | |
| WorkerPoolExecutor | back to summary |
|---|---|
| public WorkerPoolExecutor(final int corePoolSize, final int maximumPoolSize, final long keepAliveTime, final TimeUnit unit, final BlockingQueue<Runnable> workQueue, final ThreadFactory threadFactory) | |
| afterExecute | back to summary |
|---|---|
| protected void afterExecute(final Runnable r, final Throwable t) Overrides java. Doc from java. Method invoked upon completion of execution of the given Runnable.
This method is invoked by the thread that executed the task. If
non-null, the Throwable is the uncaught This implementation does nothing, but may be customized in subclasses. Note To properly nest multiple overridings, subclasses
should generally invoke Note When actions are enclosed in tasks (such as
| |
| beforeExecute | back to summary |
|---|---|
| protected void beforeExecute(final Thread t, final Runnable r) Overrides java. Doc from java. Method invoked prior to executing the given Runnable in the
given thread. This method is invoked by thread This implementation does nothing, but may be customized in subclasses. Note To properly nest multiple overridings, subclasses
should generally invoke | |
| getWorkers | back to summary |
|---|---|
| public Set | |