org.jgroups.util
public class ThreadPool extends Object
null
is returned.
Creates threads only as needed, up to the MAX_NUM limit. However, does not shrink the pool
when more threads become available than are used.
UNKNOWN: Shrink thread pool if threads are unused after some configurable time.
Field Summary | |
---|---|
protected static Log | log |
Constructor Summary | |
---|---|
ThreadPool(int max_num) |
Method Summary | |
---|---|
void | destroy() |
ReusableThread | getThread() |
String | toString() |