org.apache.geronimo.connector.work.pool
Interface WorkExecutorPool

All Superinterfaces:
EDU.oswego.cs.dl.util.concurrent.Executor
All Known Implementing Classes:
NullWorkExecutorPool, WorkExecutorPoolImpl

public interface WorkExecutorPool
extends EDU.oswego.cs.dl.util.concurrent.Executor

Defines the operations that a pool in charge of the execution of Work instances must expose.

Version:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $

Method Summary
 int getMaximumPoolSize()
          Gets the maximum number of threads to simultaneously execute.
 int getPoolSize()
          Gets the current number of active threads in the pool.
 void setMaximumPoolSize(int aSize)
          Sets the maximum number of threads to simultaneously execute.
 WorkExecutorPool start()
           
 WorkExecutorPool stop()
           
 
Methods inherited from interface EDU.oswego.cs.dl.util.concurrent.Executor
execute
 

Method Detail

getPoolSize

public int getPoolSize()
Gets the current number of active threads in the pool.

Returns:
Number of active threads in the pool.

getMaximumPoolSize

public int getMaximumPoolSize()
Gets the maximum number of threads to simultaneously execute.

Returns:
Maximum size.

setMaximumPoolSize

public void setMaximumPoolSize(int aSize)
Sets the maximum number of threads to simultaneously execute.

Parameters:
aSize - Maximum size.

start

public WorkExecutorPool start()

stop

public WorkExecutorPool stop()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.