| Modifier and Type | Class and Description |
|---|---|
| public static enum | FluxSink.OverflowStrategy
Enumeration for backpressure handling. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default ContextView | Returns: the current subscriberContextView.Return the current subscriber's context as a |
| public Context | currentContext()
Deprecated
To be removed in 3.6.0 at the earliest. Prefer using #contextView() instead.
Return the current subscriber Context.
|
| public void | |
| public boolean | Returns: true if the downstream cancelled the sequenceReturns true if the downstream cancelled the sequence. |
| public FluxSink | |
| public FluxSink | Returns: theFluxSink with a cancellation callbackthe d)Disposable to use as a callbackAttach a |
| public FluxSink | Returns: theFluxSink with a callback invoked on any terminal signal or on cancellationthe d)Disposable to use as a callbackAttach a |
| public FluxSink | Returns: FluxSink with a consumer that is notified of requeststhe consumer to invoke on each request consumer)Attaches a |
| public long | Returns: the current outstanding request amountThe current outstanding request amount. |
| complete | back to summary |
|---|---|
| public void complete() Terminate the sequence successfully, generating an
| |
| contextView | back to summary |
|---|---|
| public default ContextView contextView() Return the current subscriber's context as a
| |
| currentContext | back to summary |
|---|---|
| public Context currentContext()
Deprecated To be removed in 3.6.0 at the earliest. Prefer using #contextView() instead. Return the current subscriber
| |
| error | back to summary |
|---|---|
| public void error(Throwable e) Fail the sequence, generating an
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Returns true if the downstream cancelled the sequence.
| |
| next | back to summary |
|---|---|
| public FluxSink Emit a non-null element, generating an Might throw an unchecked exception in case of a fatal error downstream which cannot be propagated to any asynchronous handler (aka a bubbling exception).
| |
| onCancel | back to summary |
|---|---|
| public FluxSink Attach a
The callback is only relevant when the downstream
| |
| onDispose | back to summary |
|---|---|
| public FluxSink Attach a
Note that the "dispose" term is used from the perspective of the sink. Not to
be confused with
| |
| onRequest | back to summary |
|---|---|
| public FluxSink Attaches a
For push/pull sinks created using Note in case of multiple
When bridging with asynchronous listener-based APIs, the
For push-only sinks created using
| |
| requestedFromDownstream | back to summary |
|---|---|
| public long requestedFromDownstream() The current outstanding request amount.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final FluxSink. | BUFFER
Buffer all signals if the downstream can't keep up. |
| public static final FluxSink. | DROP
Drop the incoming signal if the downstream is not ready to receive it. |
| public static final FluxSink. | ERROR
Signal an |
| public static final FluxSink. | IGNORE
Completely ignore downstream backpressure requests. |
| public static final FluxSink. | LATEST
Downstream will get only the latest signals from upstream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FluxSink. | |
| public static FluxSink. |
| BUFFER | back to summary |
|---|---|
| public static final FluxSink. Buffer all signals if the downstream can't keep up. Warning This does unbounded buffering and may lead to | |
| DROP | back to summary |
|---|---|
| public static final FluxSink. Drop the incoming signal if the downstream is not ready to receive it. | |
| ERROR | back to summary |
|---|---|
| public static final FluxSink. Signal an | |
| IGNORE | back to summary |
|---|---|
| public static final FluxSink. Completely ignore downstream backpressure requests.
This may yield | |
| LATEST | back to summary |
|---|---|
| public static final FluxSink. Downstream will get only the latest signals from upstream. | |
| OverflowStrategy | back to summary |
|---|---|
| private OverflowStrategy() | |
| valueOf | back to summary |
|---|---|
| public static FluxSink. | |
| values | back to summary |
|---|---|
| public static FluxSink. | |