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

All Superinterfaces:
Executor
All Known Implementing Classes:
NullWorkExecutorPool, WorkExecutorPoolImpl

public interface WorkExecutorPool
extends Executor

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


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 java.util.concurrent.Executor
execute
 

Method Detail

getPoolSize

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

Returns:
Number of active threads in the pool.

getMaximumPoolSize

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

Returns:
Maximum size.

setMaximumPoolSize

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

Parameters:
aSize - Maximum size.

start

WorkExecutorPool start()

stop

WorkExecutorPool stop()


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