| |
|
| org.apache.cocoon.components.thread.ThreadPool
All known Subclasses: org.apache.cocoon.components.thread.DefaultThreadPool,
ThreadPool | public interface ThreadPool (Code) | | The ThreadPool interface gives access to methods needed to inspect and use
of a pool of threads
author: Giacomo Pati version: CVS $Id: ThreadPool.java 56702 2004-11-05 22:52:05Z giacomo $ |
POLICY_ABORT | String POLICY_ABORT(Code) | | ThreadPool block policy ABORT
|
POLICY_DISCARD | String POLICY_DISCARD(Code) | | ThreadPool block policy DISCARD
|
POLICY_DISCARD_OLDEST | String POLICY_DISCARD_OLDEST(Code) | | ThreadPool block policy DISCARD-OLDEST
|
POLICY_RUN | String POLICY_RUN(Code) | | ThreadPool block policy RUN
|
POLICY_WAIT | String POLICY_WAIT(Code) | | ThreadPool block policy WAIT
|
getBlockPolicy | String getBlockPolicy()(Code) | | The blocking policy used
DOCUMENT ME! |
getKeepAliveTime | long getKeepAliveTime()(Code) | | How long will a thread in this pool be idle before it is allowed to be
garbage collected
maximum idle time |
getMaximumPoolSize | int getMaximumPoolSize()(Code) | | How many threads are in this pool at maximum
maximum size of pool |
getMaximumQueueSize | int getMaximumQueueSize()(Code) | | Maximum size of the queue
current size of queue |
getMinimumPoolSize | int getMinimumPoolSize()(Code) | | How many threads are in this pool at minimum
minimum size of pool |
getName | String getName()(Code) | | The Name of this thread pool
The name |
getPoolSize | int getPoolSize()(Code) | | How many threads are currently in this pool
current size of pool |
getPriority | int getPriority()(Code) | | Get the thread priority used by this pool
current size of queue |
getQueueSize | int getQueueSize()(Code) | | Current size of the queue.
current size of queue. If the size of the queue is notmaintained by an implementation -1 should be returned. |
isQueued | boolean isQueued()(Code) | | Whether this ThreadPool has a queue
Returns true if this ThreadPool has a queue |
isTerminatedAfterShutdown | boolean isTerminatedAfterShutdown()(Code) | | Returns true if a shutDown method has succeeded in terminating all
threads
Whether a shutDown method has succeeded in terminating allthreads |
shutdown | void shutdown()(Code) | | Terminates all threads possibly awaiting processing all elements
currently in queue.
|
|
|
|