@java.lang.Deprecated public interface Bus<T>
Basic unit of event handling in Reactor.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Bus |
notify(java.lang.Object key, T ev)Notify this component that an Event is ready to be processed. |
<V extends T> |
public Subscription<java.lang.Object, Consumer<? extends T>> |
on(Selector selector, Consumer<V> consumer)Register a Consumer to be triggered when a notification matches the given Selector. |
|
public boolean |
respondsToKey(java.lang.Object key)Are there any Subscriptions with Selectors that match the given key. |
Notify this component that an Event is ready to be processed.
key - The key to be matched by Selectorsev - The EventRegister a Consumer to be triggered when a notification matches the given Selector.
selector - The Selector to be used for matchingconsumer - The Consumer to be triggered Are there any Subscriptions with Selectors that match the given key.
key - The key to be matched by Selectors