@ManagedObject(value="Pool of Threads") public interface ThreadPool extends Executor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ThreadPool.SizedThreadPool |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(Runnable job)
Deprecated.
|
int |
getIdleThreads() |
int |
getThreads() |
boolean |
isLowOnThreads() |
void |
join()
Blocks until the thread pool is
stopped. |
@Deprecated boolean dispatch(Runnable job)
Executor.execute(Runnable)void join()
throws InterruptedException
stopped.InterruptedException@ManagedAttribute(value="number of threads in pool") int getThreads()
@ManagedAttribute(value="number of idle threads in pool") int getIdleThreads()
@ManagedAttribute(value="indicates the pool is low on available threads") boolean isLowOnThreads()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.