| java.lang.Object com.versant.core.util.ThreadPool
ThreadPool | public class ThreadPool (Code) | | Simple pool of Threads.
|
close | public synchronized void close()(Code) | | Close the pool, stopping all threads. This does not wait for the
threads to actually stop before returning. This is a NOP if the
pool has already been closed.
|
execute | public synchronized boolean execute(Runnable runnable, int timeoutMs)(Code) | | Executed runnable using a Thread from the pool. This will block for
timeoutMs and forever if this is 0. Returns true if the task is
being executed (i.e. a Thread was available) or false if not (i.e.
pool full).
|
getActiveCount | public synchronized int getActiveCount()(Code) | | |
getIdleCount | public synchronized int getIdleCount()(Code) | | |
getMaxActive | public int getMaxActive()(Code) | | |
getMaxIdle | public int getMaxIdle()(Code) | | |
isFull | protected boolean isFull()(Code) | | |
setMaxActive | public void setMaxActive(int maxActive)(Code) | | |
setMaxIdle | public void setMaxIdle(int maxIdle)(Code) | | |
|
|