org.d_haven.event.command
Interface ThreadManager

All Known Implementing Classes:
DefaultThreadManager

public interface ThreadManager

A ThreadManager handles the thread policies for EventPipelines. It works hand in hand with the DefaultCommandManager, and can be expanded to work with a SEDA like architecture.

Author:
Berin Loritsch

Method Summary
 java.util.Collection getRegisteredPipelines()
          Get the collection of registered pipelines.
 void register(EventPipeline pipeline)
          Register an EventPipeline with the ThreadManager.
 void stop()
          Stop managing the pipelines, and shut down all threads in use.
 void unregister(EventPipeline pipeline)
          Deregister an EventPipeline with the ThreadManager.
 void unregisterAll()
          Deregisters all EventPipelines from this ThreadManager.
 

Method Detail

register

public void register(EventPipeline pipeline)
Register an EventPipeline with the ThreadManager.

Parameters:
pipeline - The pipeline to register

unregister

public void unregister(EventPipeline pipeline)
Deregister an EventPipeline with the ThreadManager.

Parameters:
pipeline - The pipeline to unregister

unregisterAll

public void unregisterAll()
Deregisters all EventPipelines from this ThreadManager.


getRegisteredPipelines

public java.util.Collection getRegisteredPipelines()
Get the collection of registered pipelines.

Returns:
the collection

stop

public void stop()
Stop managing the pipelines, and shut down all threads in use.



Copyright © 2004-2007 D-Haven.org. All Rights Reserved.