Home » geronimo-2.2-source-release » org.apache.geronimo.connector.work.pool » [javadoc | source]
org.apache.geronimo.connector.work.pool
public class: WorkExecutorPoolImpl [javadoc | source]
java.lang.Object
   org.apache.geronimo.connector.work.pool.WorkExecutorPoolImpl

All Implemented Interfaces:
    WorkExecutorPool

Based class for WorkExecutorPool. Sub-classes define the synchronization policy (should the call block until the end of the work; or when it starts et cetera).
Constructor:
 public WorkExecutorPoolImpl(int maxSize) 
 public WorkExecutorPoolImpl(Channel channel,
    int maxSize) 
    Creates a pool with the specified minimum and maximum sizes and using the specified Channel to enqueue the submitted Work instances.
    Parameters:
    channel - Queue to be used as the queueing facility of this pool.
    maxSize - Maximum size of the work executor pool.
Method from org.apache.geronimo.connector.work.pool.WorkExecutorPoolImpl Summary:
execute,   getMaximumPoolSize,   getPoolSize,   setMaximumPoolSize,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.connector.work.pool.WorkExecutorPoolImpl Detail:
 public  void execute(Runnable work) throws InterruptedException 
    Execute the specified Work.
 public int getMaximumPoolSize() 
    Gets the maximum size of this pool.
 public int getPoolSize() 
    Gets the size of this pool.
 public  void setMaximumPoolSize(int maxSize) 
    Sets the maximum size of this pool.
 public WorkExecutorPool start() 
 public WorkExecutorPool stop() 
    Stops this pool. Prior to stop this pool, all the enqueued Work instances are processed. This is an orderly shutdown.