public interface Bus<T>
| Modifier and Type | Method and Description |
|---|---|
Bus |
notify(Object key,
T ev)
Notify this component that an
Event is ready to be processed. |
<V extends T> |
on(Selector selector,
Consumer<V> consumer)
|
boolean |
respondsToKey(Object key)
|
boolean respondsToKey(Object key)
key - The key to be matched by Selectors<V extends T> Registration<Object,Consumer<? extends T>> on(Selector selector, Consumer<V> consumer)
selector - The Selector to be used for matchingconsumer - The Consumer to be triggeredRegistration object that allows the caller to interact with the given mappingCopyright © 2016. All rights reserved.