Keel 2.1RC2

org.apache.excalibur.event
Interface EventHandler

All Known Implementing Classes:
CommandManager.CommandEventHandler, TPCThreadManagerTestCase.Pipeline

public interface EventHandler

An EventHandler takes care of processing specific events in an event-based architecture.

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
 void handleEvent(java.lang.Object element)
          Handle one event at a time.
 void handleEvents(java.lang.Object[] elements)
          Handle a whole array of events at a time.
 

Method Detail

handleEvent

public void handleEvent(java.lang.Object element)
Handle one event at a time.

Parameters:
element - The element that the EventHandler must process

handleEvents

public void handleEvents(java.lang.Object[] elements)
Handle a whole array of events at a time.

Parameters:
elements - The array of elements that the EventHandler must process

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.