|
|||||||||||
| 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
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(EDU.oswego.cs.dl.util.concurrent.Channel channel,
int maxSize)
Creates a pool with the specified minimum and maximum sizes and using the specified Channel to enqueue the submitted Work instances. |
|
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.
public WorkExecutorPoolImpl(EDU.oswego.cs.dl.util.concurrent.Channel channel,
int maxSize)
channel - Queue to be used as the queueing facility of this pool.maxSize - Maximum size of the work executor pool.| Method Detail |
public void execute(Runnable work)
throws InterruptedException
execute in interface EDU.oswego.cs.dl.util.concurrent.Executorwork - Work to be executed.
InterruptedException - Indicates that the Work execution has been
unsuccessful.public int getPoolSize()
getPoolSize in interface WorkExecutorPoolpublic int getMaximumPoolSize()
getMaximumPoolSize in interface WorkExecutorPoolpublic void setMaximumPoolSize(int maxSize)
setMaximumPoolSize in interface WorkExecutorPoolmaxSize - New maximum size of this pool.public WorkExecutorPool start()
start in interface WorkExecutorPoolpublic WorkExecutorPool stop()
stop in interface WorkExecutorPool
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||