public final class ThreadPool extends ThreadPool2
THREAD_FULL_EVENT
Constructor and Description |
---|
ThreadPool() |
ThreadPool(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
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.
|
clearIdleThreads, close, closeEnvironment, execute, getFreeThreadCount, getIdleMax, getIdleMin, getIdleTimeout, getPriorityIdleMin, getThreadActiveCount, getThreadCount, getThreadCreateCountTotal, getThreadIdleCount, getThreadMax, getThreadOverflowCountTotal, getThreadPriorityQueueSize, getThreadStartingCount, getThreadTaskQueueSize, getThreadWaitCount, reset, schedule, schedule, schedule, scheduleImpl, schedulePriority, scheduleUnpark, setAsGlobal, setIdleMax, setIdleMin, setIdleTimeout, setPriorityIdleMin, setThreadMax, setThrottleLimit, setThrottlePeriod, setThrottleSleepTime, start, start, start, startPriority, startPriority, submitNoWake, submitNoWake, toString, wakeScheduler
public ThreadPool()
public ThreadPool(java.lang.String name)
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()