Subscriber, targeted at Mono.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Runnable | |
| pack-priv final Consumer | |
| pack-priv final Consumer | |
| pack-priv final Context | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv volatile Subscription | |
| pack-priv final Consumer |
| Access | Constructor and Description |
|---|---|
| pack-priv | LambdaMonoSubscriber(Consumer<? super T>
A consumer, Consumer<? super Throwable> Consumer with argument onNext dataA errorConsumer, Runnable Consumer called onErrorA completeConsumer, Consumer<? super Subscription> Runnable called onComplete with the actual
context if anyA subscriptionConsumer, Context Consumer called with the Subscription
to perform initial request, or null to request maxA initialContext)Context for this subscriber, or null to use the default
of an empty Context.Create a |
| pack-priv | LambdaMonoSubscriber(Consumer<? super T>
A consumer, Consumer<? super Throwable> Consumer with argument onNext dataA errorConsumer, Runnable Consumer called onErrorA completeConsumer, Consumer<? super Subscription> Runnable called onComplete with the actual
context if anyA subscriptionConsumer)Consumer called with the Subscription
to perform initial request, or null to request maxCreate a |
| Modifier and Type | Method and Description |
|---|---|
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public void | dispose()
Implements reactor. |
| pack-priv void | |
| public boolean | isDisposed()
Overrides default reactor. |
| public final void | |
| public final void | onError(Throwable
the throwable signaled t)Implements org. |
| public final void | onNext(T
the element signaled x)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public final void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| completeConsumer | back to summary |
|---|---|
| pack-priv final Runnable completeConsumer | |
| consumer | back to summary |
|---|---|
| pack-priv final Consumer<? super T> consumer | |
| errorConsumer | back to summary |
|---|---|
| pack-priv final Consumer<? super Throwable> errorConsumer | |
| initialContext | back to summary |
|---|---|
| pack-priv final Context initialContext | |
| S | back to summary |
|---|---|
| pack-priv static final AtomicReferenceFieldUpdater<LambdaMonoSubscriber<T>, Subscription> S | |
| subscription | back to summary |
|---|---|
| pack-priv volatile Subscription subscription | |
| subscriptionConsumer | back to summary |
|---|---|
| pack-priv final Consumer<? super Subscription> subscriptionConsumer | |
| LambdaMonoSubscriber | back to summary |
|---|---|
| pack-priv LambdaMonoSubscriber(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer, Runnable completeConsumer, Consumer<? super Subscription> subscriptionConsumer, Context initialContext) Create a
The argument
| |
| LambdaMonoSubscriber | back to summary |
|---|---|
| pack-priv LambdaMonoSubscriber(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer, Runnable completeConsumer, Consumer<? super Subscription> subscriptionConsumer) Create a
The argument
| |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| doError | back to summary |
|---|---|
| pack-priv void doError(Throwable t) | |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Overrides default reactor. Doc from reactor. Optionally return true when the resource or task is disposed. Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
| |
| onComplete | back to summary |
|---|---|
| public final void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public final void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public final void onNext(T x) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public final void onSubscribe(Subscription s) Implements reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |