org.apache.excalibur.event.command
Interface EventPipeline
- All Known Implementing Classes:
- CommandManager, TPCThreadManagerTestCase.Pipeline
- public interface EventPipeline
An EventPipeline is used by the ThreadManager to manage the event Queue and EventHandler relationship. The ThreadManager manages the automatic forwarding of the Events from the queue to the Event Handler.
The interface design is heavily influenced by 's SandStorm server, his demonstration of the SEDA architecture. We have deviated where we felt the design differences where better.
- Author:
| Method Summary |
EventHandler |
getEventHandler()
Returns the reference to the EventHandler that the events from all the Sinks get merged into. |
Source[] |
getSources()
There can be many different sources to merge into a pipeline. |
getSources
public Source[] getSources()
-
There can be many different sources to merge into a pipeline. For the CommandManager, there is only one sink.
-
- Returns:
- the array of sources that feed the handler
getEventHandler
public EventHandler getEventHandler()
-
Returns the reference to the EventHandler that the events from all the Sinks get merged into.
-
- Returns:
- the handler for the pipeline
Please see keelframework.org for information about new Keel releases.