org.d_haven.event
public interface EventHandler
EventHandler takes care of processing specific events
in an event-based architecture.
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.
| Method Summary | |
|---|---|
| void | handleEvent(Object element)
Handle one event at a time.
|
| void | handleEvents(Object[] elements)
Handle a whole array of events at a time.
|
Parameters: element The element that the EventHandler must process
Parameters: elements The array of elements that the EventHandler must process