| org.apache.cocoon.components.thread.RunnableManager
All known Subclasses: org.apache.cocoon.components.thread.DefaultRunnableManager,
RunnableManager | public interface RunnableManager (Code) | | The RunnableManager interface describes the functionality of an
implementation running commands in the background.
author: Giacomo Pati version: CVS $Id: RunnableManager.java 56786 2004-11-06 23:12:39Z giacomo $ |
Method Summary | |
void | createPool(String name, int queueSize, int maxPoolSize, int minPoolSize, int priority, boolean isDaemon, long keepAliveTime, String blockPolicy, boolean shutdownGraceful, int shutdownWaitTime) Create a shared ThreadPool with a specific
ThreadFactory Parameters: name - The name of the thread pool Parameters: queueSize - The size of the queue Parameters: maxPoolSize - The maximum number of threads Parameters: minPoolSize - The maximum number of threads Parameters: priority - The priority of threads created by this pool. | ThreadPool | createPool(int queueSize, int maxPoolSize, int minPoolSize, int priority, boolean isDaemon, long keepAliveTime, String blockPolicy, boolean shutdownGraceful, int shutdownWaitTime) Create a private ThreadPool with a specific
ThreadFactory Parameters: queueSize - The size of the queue Parameters: maxPoolSize - The maximum number of threads Parameters: minPoolSize - The maximum number of threads Parameters: priority - The priority of threads created by this pool. | void | execute(Runnable command) | void | execute(Runnable command, long delay) | void | execute(Runnable command, long delay, long interval) | void | execute(String threadPoolName, Runnable command) | void | execute(String threadPoolName, Runnable command, long delay) | void | execute(String threadPoolName, Runnable command, long delay, long interval) | void | remove(Runnable command) |
createPool | void createPool(String name, int queueSize, int maxPoolSize, int minPoolSize, int priority, boolean isDaemon, long keepAliveTime, String blockPolicy, boolean shutdownGraceful, int shutdownWaitTime)(Code) | | Create a shared ThreadPool with a specific
ThreadFactory Parameters: name - The name of the thread pool Parameters: queueSize - The size of the queue Parameters: maxPoolSize - The maximum number of threads Parameters: minPoolSize - The maximum number of threads Parameters: priority - The priority of threads created by this pool. This isone of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, or Thread.MAX_PRIORITY Parameters: isDaemon - Whether or not thread from the pool should run in daemonmode Parameters: keepAliveTime - How long should a thread be alive for new work tobe done before it is GCed Parameters: blockPolicy - What's the blocking policy is resources are exhausted Parameters: shutdownGraceful - Should we wait for the queue to finish allpending commands? Parameters: shutdownWaitTime - After what time a normal shutdown should takeinto account if a graceful shutdown has not come to an end |
createPool | ThreadPool createPool(int queueSize, int maxPoolSize, int minPoolSize, int priority, boolean isDaemon, long keepAliveTime, String blockPolicy, boolean shutdownGraceful, int shutdownWaitTime)(Code) | | Create a private ThreadPool with a specific
ThreadFactory Parameters: queueSize - The size of the queue Parameters: maxPoolSize - The maximum number of threads Parameters: minPoolSize - The maximum number of threads Parameters: priority - The priority of threads created by this pool. This isone of Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, or Thread.MAX_PRIORITY Parameters: isDaemon - Whether or not thread from the pool should run in daemonmode Parameters: keepAliveTime - How long should a thread be alive for new work tobe done before it is GCed Parameters: blockPolicy - What's the blocking policy is resources are exhausted Parameters: shutdownGraceful - Should we wait for the queue to finish allpending commands? Parameters: shutdownWaitTime - After what time a normal shutdown should takeinto account if a graceful shutdown has not come to an end The newly created ThreadPool |
execute | void execute(Runnable command)(Code) | | Immediate Execution of a runnable in the background
Parameters: command - The command to execute |
execute | void execute(Runnable command, long delay)(Code) | | Immediate Execution of a runnable in the background
Parameters: command - The command to execute Parameters: delay - The delay before first run |
execute | void execute(Runnable command, long delay, long interval)(Code) | | Immediate Execution of a runnable in the background
Parameters: command - The command to execute Parameters: delay - The delay before first run Parameters: interval - The interval of repeated runs |
execute | void execute(String threadPoolName, Runnable command)(Code) | | Immediate Execution of a runnable in the background
Parameters: threadPoolName - The thread pool to use Parameters: command - The command to execute |
execute | void execute(String threadPoolName, Runnable command, long delay)(Code) | | Immediate Execution of a runnable in the background
Parameters: threadPoolName - The thread pool to use Parameters: command - The command to execute Parameters: delay - The delay before first run |
execute | void execute(String threadPoolName, Runnable command, long delay, long interval)(Code) | | Delayed and repeated Execution of a runnable in the background
Parameters: threadPoolName - The thread pool to use Parameters: command - The command to execute Parameters: delay - The delay before first run Parameters: interval - The interval of repeated runs |
remove | void remove(Runnable command)(Code) | | Remove a
Runnable from the execution stack
Parameters: command - The command to be removed |
|
|