|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadPool
A generic thread pool interface.
Method Summary | |
---|---|
int |
getKeepAliveTime()
Returns the keep-alive time until the thread suicides after it became idle (milliseconds unit). |
int |
getMaximumPoolSize()
Returns the maximum size of the thread pool. |
int |
getPoolSize()
Returns the number of threads in the thread pool. |
void |
setKeepAliveTime(int keepAliveTime)
Sets the keep-alive time until the thread suicides after it became idle (milliseconds unit). |
void |
setMaximumPoolSize(int maximumPoolSize)
Sets the maximum size of the thread pool. |
void |
start()
Starts thread pool threads and starts forwarding events to them. |
void |
stop()
Stops all thread pool threads. |
Method Detail |
---|
int getPoolSize()
int getMaximumPoolSize()
int getKeepAliveTime()
void setMaximumPoolSize(int maximumPoolSize)
void setKeepAliveTime(int keepAliveTime)
void start()
void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |