|
||||||||||
| 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,
java.util.concurrent.TimeUnit unit)
|
void |
execute(java.lang.String consumerName,
java.lang.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,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedException
void execute(java.lang.String consumerName,
java.lang.Runnable runnable)
throws java.lang.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
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||