The callbacks are all optional.
Crashes by the lambdas are ignored.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Runnable | |
| pack-priv final Runnable | |
| pack-priv final Runnable | |
| pack-priv final Consumer | |
| pack-priv final Consumer | |
| pack-priv final LongConsumer | |
| pack-priv final Consumer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> void | afterCompleteWithFailure(SignalPeek<T>
the parent, Throwable SignalPeek from which to get the callbacksthe afterTerminate callback failure callbackFailure, Context subscriber context context)Common method for FluxPeek and FluxPeekFuseable to deal with a doAfterTerminate callback that fails during onComplete. |
| pack-priv static <T> void | afterErrorWithFailure(SignalPeek<T>
the parent, Throwable SignalPeek from which to get the callbacksthe afterTerminate callback failure callbackFailure, Throwable the onError throwable originalError, Context subscriber context context)Common method for FluxPeek and FluxPeekFuseable to deal with a doAfterTerminate callback that fails during onError. |
| public Runnable | onAfterTerminateCall()
Implements reactor. Subscriber#onComplete() or Subscriber#onError(Throwable)
|
| public Runnable | onCancelCall()
Implements reactor. Subscription#cancel()
|
| public Runnable | onCompleteCall()
Implements reactor. Subscriber#onComplete()
|
| public Consumer | onErrorCall()
Implements reactor. Subscriber#onError(Throwable)}
|
| public Consumer | onNextCall()
Implements reactor. Subscriber#onNext(Object)
|
| public LongConsumer | onRequestCall()
Implements reactor. Subscription#request(long)}
|
| public Consumer | onSubscribeCall()
Implements reactor. Subscriber#onSubscribe(Subscription)
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides reactor. Implements reactor. |
| public CoreSubscriber | subscribeOrReturn(CoreSubscriber<? super T> actual)
Implements abstract reactor. Implements reactor. CoreSubscriber, or force
subscription encapsulation by returning null.
|
| onAfterTerminateCall | back to summary |
|---|---|
| pack-priv final Runnable onAfterTerminateCall | |
| onCancelCall | back to summary |
|---|---|
| pack-priv final Runnable onCancelCall | |
| onCompleteCall | back to summary |
|---|---|
| pack-priv final Runnable onCompleteCall | |
| onErrorCall | back to summary |
|---|---|
| pack-priv final Consumer<? super Throwable> onErrorCall | |
| onNextCall | back to summary |
|---|---|
| pack-priv final Consumer<? super T> onNextCall | |
| onRequestCall | back to summary |
|---|---|
| pack-priv final LongConsumer onRequestCall | |
| onSubscribeCall | back to summary |
|---|---|
| pack-priv final Consumer<? super Subscription> onSubscribeCall | |
| FluxPeek | back to summary |
|---|---|
| pack-priv FluxPeek(Flux<? extends T> source, Consumer<? super Subscription> onSubscribeCall, Consumer<? super T> onNextCall, Consumer<? super Throwable> onErrorCall, Runnable onCompleteCall, Runnable onAfterTerminateCall, LongConsumer onRequestCall, Runnable onCancelCall) | |
| afterCompleteWithFailure | back to summary |
|---|---|
| pack-priv static <T> void afterCompleteWithFailure(SignalPeek<T> parent, Throwable callbackFailure, Context context) Common method for FluxPeek and FluxPeekFuseable to deal with a doAfterTerminate callback that fails during onComplete. It drops the error to the global hook.
| |
| afterErrorWithFailure | back to summary |
|---|---|
| pack-priv static <T> void afterErrorWithFailure(SignalPeek<T> parent, Throwable callbackFailure, Throwable originalError, Context context) Common method for FluxPeek and FluxPeekFuseable to deal with a doAfterTerminate callback that fails during onError. It drops the error to the global hook.
| |
| onAfterTerminateCall | back to summary |
|---|---|
| public Runnable onAfterTerminateCall() Implements reactor. Doc from reactor. A task will run after termination via
| |
| onCancelCall | back to summary |
|---|---|
| public Runnable onCancelCall() Implements reactor. Doc from reactor. A task that will run on
| |
| onCompleteCall | back to summary |
|---|---|
| public Runnable onCompleteCall() Implements reactor. Doc from reactor. A task that will run on
| |
| onErrorCall | back to summary |
|---|---|
| public Consumer Implements reactor. Doc from reactor. A consumer that will observe
| |
| onNextCall | back to summary |
|---|---|
| public Consumer Implements reactor. Doc from reactor. A consumer that will observe
| |
| onRequestCall | back to summary |
|---|---|
| public LongConsumer onRequestCall() Implements reactor. Doc from reactor. A consumer of long that will observe
| |
| onSubscribeCall | back to summary |
|---|---|
| public Consumer Implements reactor. Doc from reactor. A consumer that will observe
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides reactor. 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 | |
| subscribeOrReturn | back to summary |
|---|---|
| public CoreSubscriber Implements abstract reactor. Implements reactor. Doc from reactor. Allow delegation of the subscription by returning a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CoreSubscriber | |
| pack-priv boolean | |
| pack-priv final SignalPeek | |
| pack-priv Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CoreSubscriber | |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public Context | currentContext()
Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(T
the element signaled t)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public void | request(long
the strictly positive number of elements to requests to the upstream n)PublisherImplements org. Publisher until demand is signaled via this method.
|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. Implements reactor. |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super T> actual | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| parent | back to summary |
|---|---|
| pack-priv final SignalPeek<T> parent | |
| s | back to summary |
|---|---|
| pack-priv Subscription s | |
| PeekSubscriber | back to summary |
|---|---|
| pack-priv PeekSubscriber(CoreSubscriber<? super T> actual, SignalPeek<T> parent) | |
| actual | back to summary |
|---|---|
| public CoreSubscriber Implements reactor.
| |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Overrides default reactor. Doc from reactor. Request a
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public 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 void onNext(T t) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public 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
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements org. Doc from org. No events will be sent by a
It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more,
it may be treated by the
Whatever has been requested can be sent by the
A | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default reactor. 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 | |