public interface WorkerPool
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable task)
Asynchronously execute the given task using one of the threads of the worker pool.
|
int |
getActiveCount() |
int |
getQueueSize() |
void |
shutdown(int timeout)
Destroy the worker pool.
|
void execute(java.lang.Runnable task)
Runnable.run() should not
throw an exception. Any uncaught exceptions should be logged by the worker pool
implementation.task - the task to executeint getActiveCount()
int getQueueSize()
void shutdown(int timeout)
throws java.lang.InterruptedException
timeout - the timeout value in millisecondsjava.lang.InterruptedException - if the current thread was
interrupted while waiting for pending tasks to
finish executionCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.