Save This Page
Home » synapse-1.2-src » org.apache.synapse.transport.base.threads » [javadoc | source]
org.apache.synapse.transport.base.threads
public class: NativeWorkerPool [javadoc | source]
java.lang.Object
   org.apache.synapse.transport.base.threads.NativeWorkerPool

All Implemented Interfaces:
    WorkerPool

Worker pool implementation based on java.util.concurrent in JDK 1.5 or later.
Nested Class Summary:
public class  NativeWorkerPool.NativeThreadFactory  This is a simple ThreadFactory implementation using java.util.concurrent Creates threads with the given name prefix 
Constructor:
 public NativeWorkerPool(int core,
    int max,
    int keepAlive,
    int queueLength,
    String threadGroupName,
    String threadGroupId) 
Method from org.apache.synapse.transport.base.threads.NativeWorkerPool Summary:
execute,   getActiveCount,   getQueueSize,   shutdown
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.transport.base.threads.NativeWorkerPool Detail:
 public  void execute(Runnable task) 
 public int getActiveCount() 
 public int getQueueSize() 
 public  void shutdown(int timeout) throws InterruptedException