org.apache.excalibur.event.command
Interface EventPipeline

All Known Implementing Classes:
CommandManager

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 Matt Welsh's SandStorm server, his demonstration of the SEDA architecture. We have deviated where we felt the design differences where better.

Author:
Avalon Development Team

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

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


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.