|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int getPoolSize()
public int getMaximumPoolSize()
public int getKeepAliveTime()
public void setMaximumPoolSize(int maximumPoolSize)
public void setKeepAliveTime(int keepAliveTime)
public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |