@ManagedObject(value="Pool of Threads") public interface ThreadPool extends Executor
getThreads())
and the option of configuration methods (e.g. @link ThreadPool.SizedThreadPool.setMaxThreads(int)).| Modifier and Type | Interface and Description |
|---|---|
static interface |
ThreadPool.SizedThreadPool |
| Modifier and Type | Method and Description |
|---|---|
int |
getIdleThreads() |
int |
getThreads() |
boolean |
isLowOnThreads() |
void |
join()
Blocks until the thread pool is
stopped. |
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-2015 Webtide. All Rights Reserved.