| Modifier and Type | Field and Description |
|---|---|
| protected boolean | daemon
Run threads in daemon or non-daemon state |
| protected ThreadPoolExecutor | executor
The executor we use for this component |
| protected int | maxIdleTime
idle time in milliseconds |
| protected int | maxQueueSize
The maximum number of elements that can queue up before we reject them |
| protected int | maxThreads
max number of threads |
| protected int | minSpareThreads
min number of threads |
| protected String | name
the name of this thread pool |
| protected String | namePrefix
Default name prefix for the thread name |
| protected static final StringManager | |
| private TaskQueue | |
| protected int | threadPriority
Default thread priority |
| protected long | threadRenewalDelay
After a context is stopped, threads in the pool are renewed. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | execute(Runnable
the runnable task command)Implements java. Executes the given command at some time in the future. |
| public int | getActiveCount()
Implements org. Returns the approximate number of threads that are actively executing tasks. |
| public long | |
| public int | |
| protected String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public String | |
| public String | |
| protected String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public int | getPoolSize()
Implements org. Returns the current number of threads in the pool. |
| public int | |
| public int | |
| public long | |
| public boolean | |
| public boolean | resizePool(int corePoolSize, int maximumPoolSize)
Implements org.
|
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | startInternal()
Implements abstract org. Start the component and implement the requirements of
|
| protected void | stopInternal()
Implements abstract org. Stop the component and implement the requirements of
|
| daemon | back to summary |
|---|---|
| protected boolean daemon Run threads in daemon or non-daemon state | |
| executor | back to summary |
|---|---|
| protected ThreadPoolExecutor executor The executor we use for this component | |
| maxIdleTime | back to summary |
|---|---|
| protected int maxIdleTime idle time in milliseconds | |
| maxQueueSize | back to summary |
|---|---|
| protected int maxQueueSize The maximum number of elements that can queue up before we reject them | |
| maxThreads | back to summary |
|---|---|
| protected int maxThreads max number of threads | |
| minSpareThreads | back to summary |
|---|---|
| protected int minSpareThreads min number of threads | |
| name | back to summary |
|---|---|
| protected String name the name of this thread pool | |
| namePrefix | back to summary |
|---|---|
| protected String namePrefix Default name prefix for the thread name | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| taskqueue | back to summary |
|---|---|
| private TaskQueue taskqueue | |
| threadPriority | back to summary |
|---|---|
| protected int threadPriority Default thread priority | |
| threadRenewalDelay | back to summary |
|---|---|
| protected long threadRenewalDelay After a context is stopped, threads in the pool are renewed. To avoid renewing all threads at the same time, this delay is observed between 2 threads being renewed. | |
| StandardThreadExecutor | back to summary |
|---|---|
| public StandardThreadExecutor() | |
| contextStopping | back to summary |
|---|---|
| public void contextStopping() | |
| execute | back to summary |
|---|---|
| public void execute(Runnable command) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the | |
| getActiveCount | back to summary |
|---|---|
| public int getActiveCount() Implements org. Doc from org. Returns the approximate number of threads that are actively executing tasks.
| |
| getCompletedTaskCount | back to summary |
|---|---|
| public long getCompletedTaskCount() | |
| getCorePoolSize | back to summary |
|---|---|
| public int getCorePoolSize() | |
| getDomainInternal | back to summary |
|---|---|
| protected String getDomainInternal() Implements abstract org. Doc from org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. | |
| getLargestPoolSize | back to summary |
|---|---|
| public int getLargestPoolSize() | |
| getMaxIdleTime | back to summary |
|---|---|
| public int getMaxIdleTime() | |
| getMaxQueueSize | back to summary |
|---|---|
| public int getMaxQueueSize() | |
| getMaxThreads | back to summary |
|---|---|
| public int getMaxThreads() Implements org.
| |
| getMinSpareThreads | back to summary |
|---|---|
| public int getMinSpareThreads() | |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| getNamePrefix | back to summary |
|---|---|
| public String getNamePrefix() | |
| getObjectNameKeyProperties | back to summary |
|---|---|
| protected String getObjectNameKeyProperties() Implements abstract org. Doc from org. Allow sub-classes to specify the key properties component of the
| |
| getPoolSize | back to summary |
|---|---|
| public int getPoolSize() Implements org. Doc from org. Returns the current number of threads in the pool.
| |
| getQueueSize | back to summary |
|---|---|
| public int getQueueSize() | |
| getThreadPriority | back to summary |
|---|---|
| public int getThreadPriority() | |
| getThreadRenewalDelay | back to summary |
|---|---|
| public long getThreadRenewalDelay() | |
| isDaemon | back to summary |
|---|---|
| public boolean isDaemon() | |
| resizePool | back to summary |
|---|---|
| public boolean resizePool(int corePoolSize, int maximumPoolSize) Implements org.
| |
| resizeQueue | back to summary |
|---|---|
| public boolean resizeQueue(int capacity) Implements org.
| |
| setDaemon | back to summary |
|---|---|
| public void setDaemon(boolean daemon) | |
| setMaxIdleTime | back to summary |
|---|---|
| public void setMaxIdleTime(int maxIdleTime) | |
| setMaxQueueSize | back to summary |
|---|---|
| public void setMaxQueueSize(int size) | |
| setMaxThreads | back to summary |
|---|---|
| public void setMaxThreads(int maxThreads) | |
| setMinSpareThreads | back to summary |
|---|---|
| public void setMinSpareThreads(int minSpareThreads) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setNamePrefix | back to summary |
|---|---|
| public void setNamePrefix(String namePrefix) | |
| setThreadPriority | back to summary |
|---|---|
| public void setThreadPriority(int threadPriority) | |
| setThreadRenewalDelay | back to summary |
|---|---|
| public void setThreadRenewalDelay(long threadRenewalDelay) | |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Start the component and implement the requirements of
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Stop the component and implement the requirements of
| |