org.d_haven.event.command
public class DefaultThreadManager extends Object implements ThreadManager
Field Summary | |
---|---|
List | m_pipelines |
ThreadPolicy | m_policy |
Constructor Summary | |
---|---|
DefaultThreadManager()
Create the DefaultThreadManager using the OneThreadPolicy as the
way to run events through the pipelines. | |
DefaultThreadManager(ThreadPolicy policy)
Create the DefaultThreadManager using the ThreadPolicy of your
choice. |
Method Summary | |
---|---|
Collection | getRegisteredPipelines()
Return a copy of all the pipelines registered at this point.
|
void | register(EventPipeline pipeline)
Register an EventPipeline with the ThreadManager.
|
void | stop()
Stop the ThreadManager from running the pipelines. |
String | toString() |
void | unregister(EventPipeline pipeline)
Unregister an EventPipeline with the ThreadManager.
|
void | unregisterAll()
Unregisters all EventPipelines from this ThreadManager. |
Parameters: policy the ThreadPolicy to use
Returns: a copy of the pipelines
Parameters: pipeline The pipeline to register
Parameters: pipeline The pipeline to unregister