org.d_haven.event.command
Interface EventPipeline

All Known Implementing Classes:
CommandEventPipeline

public interface EventPipeline

An EventPipeline is used by the ThreadManager to manage the event Pipe 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 Matt Welsh's SandStorm server, his demonstration of the SEDA architecture. We have deviated where we felt the design differences where better.

Author:
Berin Loritsch

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.
 

Method Detail

getSources

Source[] getSources()
There can be many different sources to merge into a pipeline. For the DefaultCommandManager, there is only one sink.

Returns:
the array of sources that feed the handler

getEventHandler

EventHandler getEventHandler()
Returns the reference to the EventHandler that the events from all the Sinks get merged into.

Returns:
the handler for the pipeline