public interface EventSinkBroker
| Modifier and Type | Method and Description |
|---|---|
void |
addSink(Class<? extends Event> eventClass,
EventSink sink)
Adds a new event sink associated with the specified event class.
|
EventSink |
get(Class<? extends Event> eventClass)
Get the event sink associated with the given event class.
|
void |
removeSink(Class<? extends Event> eventClass)
Removes a previously added event sink.
|
void addSink(Class<? extends Event> eventClass, EventSink sink)
eventClass - class of events handled by the sinksink - event sinkIllegalStateException - if the event class already has a sinkEventSink get(Class<? extends Event> eventClass)
eventClass - class of eventsvoid removeSink(Class<? extends Event> eventClass)
eventClass - class of events handled by the sinkIllegalStateException - if the given sink is not foundCopyright © 2014. All Rights Reserved.