|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Matcher<E,P extends Comparable<P>,C,K,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
Implementations of this interface match handlers to events.
| Nested Class Summary | |
|---|---|
static interface |
Matcher.HandlerManager<E,P extends Comparable<P>,C,K,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
Interface for live batch update of handlers. |
| Method Summary | |
|---|---|
K |
addHandler(EventHandler<E,P,C,H,S> eventHandler)
Adds handler to the matcher. |
void |
manageHandlers(Matcher.HandlerManager<E,P,C,K,H,S> handlerManager)
This method is used for batch live updates of matcher handlers. |
Iterable<EventHandlerWrapper<E,P,C,K,H,S>> |
match(E event,
ExecutorService executorService)
|
void |
removeHandlers(Iterable<K> keys)
|
void |
reset()
Resets handler's state. |
void |
setEventBus(EventBus<E,P,C,K,H,S> bus)
This method is invoked by the bus to provide a reference to self. |
void |
takeSnapshot(AbstractEventBus.Snapshot<E,P,C,K,H,S> snapshot)
Takes matcher snapshot. |
| Method Detail |
|---|
K addHandler(EventHandler<E,P,C,H,S> eventHandler)
eventHandler -
Iterable<EventHandlerWrapper<E,P,C,K,H,S>> match(E event,
ExecutorService executorService)
event - executorService - Executor service to use for parallel matching.
void takeSnapshot(AbstractEventBus.Snapshot<E,P,C,K,H,S> snapshot)
snapshot - void removeHandlers(Iterable<K> keys)
void reset()
void manageHandlers(Matcher.HandlerManager<E,P,C,K,H,S> handlerManager)
handlerManager - void setEventBus(EventBus<E,P,C,K,H,S> bus)
bus -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||