org.apache.geronimo.connector.work.pool
Class NullWorkExecutorPool

java.lang.Object
  extended by org.apache.geronimo.connector.work.pool.NullWorkExecutorPool
All Implemented Interfaces:
Executor, WorkExecutorPool

public class NullWorkExecutorPool
extends Object
implements WorkExecutorPool


Constructor Summary
NullWorkExecutorPool(int maxSize)
           
 
Method Summary
 void execute(Runnable command)
           
 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 maxSize)
          Sets the maximum number of threads to simultaneously execute.
 WorkExecutorPool start()
           
 WorkExecutorPool stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullWorkExecutorPool

public NullWorkExecutorPool(int maxSize)
Method Detail

getPoolSize

public int getPoolSize()
Description copied from interface: WorkExecutorPool
Gets the current number of active threads in the pool.

Specified by:
getPoolSize in interface WorkExecutorPool
Returns:
Number of active threads in the pool.

getMaximumPoolSize

public int getMaximumPoolSize()
Description copied from interface: WorkExecutorPool
Gets the maximum number of threads to simultaneously execute.

Specified by:
getMaximumPoolSize in interface WorkExecutorPool
Returns:
Maximum size.

setMaximumPoolSize

public void setMaximumPoolSize(int maxSize)
Description copied from interface: WorkExecutorPool
Sets the maximum number of threads to simultaneously execute.

Specified by:
setMaximumPoolSize in interface WorkExecutorPool
Parameters:
maxSize - Maximum size.

start

public WorkExecutorPool start()
Specified by:
start in interface WorkExecutorPool

stop

public WorkExecutorPool stop()
Specified by:
stop in interface WorkExecutorPool

execute

public void execute(Runnable command)
Specified by:
execute in interface Executor


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