org.apache.geronimo.connector.work.pool
Class NullWorkExecutorPool
java.lang.Object
org.apache.geronimo.connector.work.pool.NullWorkExecutorPool
- All Implemented Interfaces:
- Executor, WorkExecutorPool
public class NullWorkExecutorPool
- extends Object
- implements WorkExecutorPool
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullWorkExecutorPool
public NullWorkExecutorPool(int maxSize)
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-2010 Apache Software Foundation. All Rights Reserved.