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

All Known Implementing Classes:
    NativeWorkerPool

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.