T
- the value typepublic interface FluxSink<T>
Modifier and Type | Interface and Description |
---|---|
static class |
FluxSink.OverflowStrategy
Enumeration for backpressure handling.
|
Modifier and Type | Method and Description |
---|---|
void |
complete() |
void |
error(java.lang.Throwable e) |
boolean |
isCancelled()
Returns true if the downstream cancelled the sequence.
|
void |
next(T t)
Try emitting, might throw an unchecked exception.
|
long |
requestedFromDownstream()
The current outstanding request amount.
|
FluxSink<T> |
serialize()
Ensures that calls to next, error and complete are properly serialized.
|
void |
setCancellation(Cancellation c)
Associate a cancellation-based resource with this FluxSink
that will be disposed in case the downstream cancels the sequence
via
Subscription.cancel() . |
void complete()
Subscriber.onComplete()
void error(java.lang.Throwable e)
e
- the exception to signal, not nullSubscriber.onError(Throwable)
void next(T t)
t
- the value to emit, not nulljava.lang.RuntimeException
Subscriber.onNext(Object)
long requestedFromDownstream()
boolean isCancelled()
FluxSink<T> serialize()
FluxSink
void setCancellation(Cancellation c)
Subscription.cancel()
.c
-