org.apache.catalina.core
public class StandardThreadExecutor extends Object implements Executor
| Field Summary | |
|---|---|
| protected boolean | daemon |
| protected ThreadPoolExecutor | executor |
| protected int | maxIdleTime |
| protected int | maxThreads |
| protected int | minSpareThreads |
| protected String | name |
| protected String | namePrefix |
| protected int | threadPriority |
| Constructor Summary | |
|---|---|
| StandardThreadExecutor() | |
| Method Summary | |
|---|---|
| void | addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component.
|
| void | execute(Runnable command) |
| LifecycleListener[] | findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
| int | getActiveCount() |
| long | getCompletedTaskCount() |
| int | getCorePoolSize() |
| int | getLargestPoolSize() |
| int | getMaxIdleTime() |
| int | getMaxThreads() |
| int | getMinSpareThreads() |
| String | getName() |
| String | getNamePrefix() |
| int | getPoolSize() |
| int | getQueueSize() |
| int | getThreadPriority() |
| boolean | isDaemon() |
| void | removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component.
|
| void | setDaemon(boolean daemon) |
| void | setMaxIdleTime(int maxIdleTime) |
| void | setMaxThreads(int maxThreads) |
| void | setMinSpareThreads(int minSpareThreads) |
| void | setName(String name) |
| void | setNamePrefix(String namePrefix) |
| void | setThreadPriority(int threadPriority) |
| void | start() |
| void | stop() |
Parameters: listener The listener to add
Parameters: listener The listener to remove