T - the type of the values that the consumer can acceptpublic class NotifyConsumer<T>
extends java.lang.Object
implements reactor.fn.Consumer<T>
Consumer that notifies an observable of each value that it has accepted.| Constructor and Description |
|---|
NotifyConsumer(java.lang.Object notifyKey,
Bus<?> observable)
Creates a new
NotifyConsumer that will notify the given observable using
the given notifyKey. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t) |
public NotifyConsumer(java.lang.Object notifyKey,
Bus<?> observable)
NotifyConsumer that will notify the given observable using
the given notifyKey. If notifyKey is null, observable
will be notified without a key.notifyKey - The notification key, may be nullobservable - The observable to notify. May not be null