com.hammurapi.eventbus
Interface EventHandler<E,P extends Comparable<P>,C,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>

Show UML class diagram
Type Parameters:
E - Event type.
P - Priority type.
All Superinterfaces:
EventHandlerBase<E,P,C>
All Known Implementing Classes:
AbstractEventHandler, EventHandlerFilter, LocalAbstractEventHandler, ReflectiveEventHandler

public interface EventHandler<E,P extends Comparable<P>,C,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
extends EventHandlerBase<E,P,C>

Event handler.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hammurapi.eventbus.EventHandlerBase
EventHandlerBase.Mode
 
Method Summary
 void post(EventDispatchContext<E,P,C,H,S> context, E... events)
          Posts event for handling.
 
Methods inherited from interface com.hammurapi.eventbus.EventHandlerBase
consumes, getCardinality, getContext, getMode, getPredicate, getPriority, isOneOff, reset
 

Method Detail

post

void post(EventDispatchContext<E,P,C,H,S> context,
          E... events)
Posts event for handling.

Parameters:
context - Event dispatching context.
events - Events to handle. An event to handle if there is one event. A tuple of joined events to handle otherwise.