org.mule.impl.work
Interface WorkExecutorPool

All Known Implementing Classes:
NullWorkExecutorPool, WorkExecutorPoolImpl

public interface WorkExecutorPool

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

Version:
$Rev$ $Date: 2005/04/05 06:03:20 $

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()
           
 

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-2005 SymphonySoft Limited. All Rights Reserved.