|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.connector.work.pool.WorkExecutorPoolImpl
public class WorkExecutorPoolImpl
Based class for WorkExecutorPool. Sub-classes define the synchronization policy (should the call block until the end of the work; or when it starts et cetera).
Constructor Summary | |
---|---|
WorkExecutorPoolImpl(int maxSize)
Creates a pool with the specified minimum and maximum sizes. |
Method Summary | |
---|---|
void |
execute(Runnable work)
Execute the specified Work. |
int |
getMaximumPoolSize()
Gets the maximum size of this pool. |
int |
getPoolSize()
Gets the size of this pool. |
void |
setMaximumPoolSize(int maxSize)
Sets the maximum size of this pool. |
WorkExecutorPool |
start()
|
WorkExecutorPool |
stop()
Stops this pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkExecutorPoolImpl(int maxSize)
maxSize
- Maximum size of the work executor pool.Method Detail |
---|
public void execute(Runnable work)
execute
in interface Executor
work
- Work to be executed.public int getPoolSize()
getPoolSize
in interface WorkExecutorPool
public int getMaximumPoolSize()
getMaximumPoolSize
in interface WorkExecutorPool
public void setMaximumPoolSize(int maxSize)
setMaximumPoolSize
in interface WorkExecutorPool
maxSize
- New maximum size of this pool.public WorkExecutorPool start()
start
in interface WorkExecutorPool
public WorkExecutorPool stop()
stop
in interface WorkExecutorPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |