| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.processor.threepass
|
Class ThreePassProcessorPool
|
java.util.concurrent.AbstractExecutorService
|
+--java.util.concurrent.ThreadPoolExecutor
|
+--com.newstep.solid.processor.threepass.ThreePassProcessorPool
All Implemented Interfaces:
ExecutorService
public class ThreePassProcessorPool
an extension to ThreadPoolExceutor that performs a notification when the pool
is terminated.
| Field Summary |
private List |
|
private String |
|
| Constructor Summary |
public void |
ThreePassProcessorPool(String name, Integer corePoolSize, Integer maximumPoolSize, Long keepAliveTime, TimeUnit unit, BlockingQueue workQueue) |
| Method Summary |
public void |
|
public void |
|
protected void |
|
private List listeners
interested parties
Multiplicity:
1
private String name
name of the pool. Used so the same listener can listen for multiple pools
and distinguish among all of them.
Multiplicity:
1
public void ThreePassProcessorPool (String name, Integer corePoolSize, Integer maximumPoolSize, Long keepAliveTime, TimeUnit unit, BlockingQueue workQueue)
Constructor
Parameters:
name
a unique name for the pool
corePoolSize
the number of threads to keep in the pool, even if they are
idle
maximumPoolSize
the maximum number of threads to allow in the pool
keepAliveTime
when the number of threads is greater than the core, this is
the maximum time that excess idle threads will wait for new
tasks before terminating
unit
the time unit for the keepAliveTime argument
workQueue
the queue to use for holding tasks before they are executed.
This queue will hold only the Runnable tasks submitted by the
execute method
Stereotype:
create
addThreePassProcessorPoolListener
adds an interested party to the list of listeners
Parameters:
listener
a ThreePassProcessorPoolListener
removeThreePassProcessorPoolListener
removes an interested party from the list of listeners
Parameters:
listener
a ThreePassProcessorPoolListener
protected void terminated ()
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|