com.hammurapi.eventbus
Class EventHandlerFilter<E,P extends Comparable<P>,C,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
java.lang.Object
com.hammurapi.eventbus.AbstractEventHandler<E,P,C,H,S>
com.hammurapi.eventbus.EventHandlerFilter<E,P,C,H,S>
- Type Parameters:
E - P - C - H - S -
- All Implemented Interfaces:
- EventHandler<E,P,C,H,S>, EventHandlerBase<E,P,C>
public class EventHandlerFilter<E,P extends Comparable<P>,C,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
- extends AbstractEventHandler<E,P,C,H,S>
This class delegates to another event handler. The class is initialized from the master handler. Initialization parameters
can be changed afterwards.
| Methods inherited from class com.hammurapi.eventbus.AbstractEventHandler |
consumes, getCardinality, getContext, getMode, getPredicate, getPriority, isOneOff, reset, setCardinality, setConsumes, setContext, setMode, setOneOff, setPredicate, setPriority, toString |
EventHandlerFilter
public EventHandlerFilter(EventHandler<E,P,C,H,S> master)
post
public void post(EventDispatchContext<E,P,C,H,S> context,
E... events)
- Description copied from interface:
EventHandler
- 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.
getMaster
public EventHandler<E,P,C,H,S> getMaster()