|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.env.thread2.ThreadPool2
com.caucho.env.thread.ThreadPool
public final class ThreadPool
A generic pool of threads available for Alarms and Work tasks.
Field Summary |
---|
Fields inherited from class com.caucho.env.thread2.ThreadPool2 |
---|
THREAD_FULL_EVENT |
Constructor Summary | |
---|---|
ThreadPool()
|
|
ThreadPool(java.lang.String name)
|
Method Summary | |
---|---|
void |
completeExecutorTask()
Called when an executor task completes |
static ThreadPool |
getCurrent()
|
int |
getExecutorTaskMax()
Gets the maximum number of executor threads. |
static ThreadPool |
getThreadPool()
|
boolean |
scheduleExecutorTask(java.lang.Runnable task)
Schedules an executor task. |
protected ThreadPool |
setAsGlobal()
|
void |
setExecutorTaskMax(int max)
Sets the maximum number of executor threads. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadPool()
public ThreadPool(java.lang.String name)
Method Detail |
---|
public static ThreadPool getCurrent()
public static ThreadPool getThreadPool()
protected ThreadPool setAsGlobal()
public void setExecutorTaskMax(int max)
public int getExecutorTaskMax()
public boolean scheduleExecutorTask(java.lang.Runnable task)
public void completeExecutorTask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |