Home » synapse-1.2-src » org.apache.synapse.transport.base.threads » [javadoc | source]
public interface: WorkerPool [javadoc | source]

All Known Implementing Classes:

Method from org.apache.synapse.transport.base.threads.WorkerPool Summary:
execute,   getActiveCount,   getQueueSize,   shutdown
Method from org.apache.synapse.transport.base.threads.WorkerPool Detail:
 public  void execute(Runnable task)
 public int getActiveCount()
 public int getQueueSize()
 public  void shutdown(int timeout) throws InterruptedException
    Destroy the worker pool. The pool will immediately stop accepting new tasks. All previously submitted tasks will be executed. The method blocks until all tasks have completed execution, or the timeout occurs, or the current thread is interrupted, whichever happens first.