public interface ThreadPool
Modifier and Type | Interface and Description |
---|---|
static interface |
ThreadPool.SizedThreadPool |
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
.InterruptedException
int getThreads()
int getIdleThreads()
boolean isLowOnThreads()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.