public interface Bus<T>
| Modifier and Type | Method and Description |
|---|---|
Bus |
notify(java.lang.Object key,
T ev)
Notify this component that an
Event is ready to be processed. |
<V extends T> |
on(Selector selector,
reactor.fn.Consumer<V> consumer)
Register a
Consumer to be triggered when a notification matches the given Selector. |
boolean |
respondsToKey(java.lang.Object key)
|
boolean respondsToKey(java.lang.Object key)
key - The key to be matched by Selectors<V extends T> Registration<reactor.fn.Consumer<? extends T>> on(Selector selector, reactor.fn.Consumer<V> consumer)
Consumer to be triggered when a notification matches the given Selector.selector - The Selector to be used for matchingconsumer - The Consumer to be triggeredRegistration object that allows the caller to interact with the given mapping