public interface ThreadPool
Modifier and Type | Method and Description |
---|---|
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.
|
int getPoolSize()
int getMaximumPoolSize()
int getKeepAliveTime()
void setMaximumPoolSize(int maximumPoolSize)
void setKeepAliveTime(int keepAliveTime)
void start()
void stop()