public interface ThreadPool
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(Runnable job) |
int |
getIdleThreads() |
int |
getThreads() |
boolean |
isLowOnThreads() |
void |
join()
Blocks until the thread pool is
stopped. |
boolean dispatch(Runnable job)
void join() throws InterruptedException
stopped.InterruptedExceptionint getThreads()
int getIdleThreads()
boolean isLowOnThreads()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.