|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadPool
Management interface for thread pools
Method Summary | |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
|
void |
execute(String consumerName,
Runnable runnable)
Executes work on behalf of a named client. |
int |
getActiveCount()
|
int |
getMaximumPoolSize()
Gets the maximum number of threads allowed for this thread pool |
int |
getPoolSize()
|
Method Detail |
---|
int getPoolSize()
int getMaximumPoolSize()
int getActiveCount()
boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
void execute(String consumerName, Runnable runnable) throws InterruptedException
consumerName
- A name identifying the caller, to be used in
the management statistics for this pool, etc.runnable
- The work to be done by a thread in the pool
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |