org.d_haven.event.command
Interface EventPipeline
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
Returns the reference to the EventHandler that the events from
all the Sinks get merged into.
Returns: the handler for the pipeline
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