Package reactor.core.publisher
Interface Sinks.UnicastSpec
- Enclosing class:
- Sinks
public static interface Sinks.UnicastSpec
Provides unicast: 1 sink, 1
Subscriber-
Method Summary
Modifier and TypeMethodDescription<T> Sinks.Many<T>ASinks.Manywith the following characteristics: Unicast: contrary to most otherSinks.Many, theFluxview rejectssubscriberspast the first one. Backpressure : this sink honors downstream demand of its singleSubscriber. Replaying: non-applicable, since only oneSubscribercan register. WithoutSubscriber: all elements pushed to this sink are remembered and will be replayed once theSubscribersubscribes.<T> Sinks.Many<T>onBackpressureBuffer(Queue<T> queue) ASinks.Manywith the following characteristics: Unicast: contrary to most otherSinks.Many, theFluxview rejectssubscriberspast the first one. Backpressure : this sink honors downstream demand of its singleSubscriber. Replaying: non-applicable, since only oneSubscribercan register. WithoutSubscriber: depending on the queue, all elements pushed to this sink are remembered and will be replayed once theSubscribersubscribes.<T> Sinks.Many<T>onBackpressureBuffer(Queue<T> queue, Disposable endCallback) ASinks.Manywith the following characteristics: Unicast: contrary to most otherSinks.Many, theFluxview rejectssubscriberspast the first one. Backpressure : this sink honors downstream demand of its singleSubscriber. Replaying: non-applicable, since only oneSubscribercan register. WithoutSubscriber: depending on the queue, all elements pushed to this sink are remembered and will be replayed once theSubscribersubscribes.<T> Sinks.Many<T>ASinks.Manywith the following characteristics: Unicast: contrary to most otherSinks.Many, theFluxview rejectssubscriberspast the first one. Backpressure : this sink honors downstream demand of the Subscriber, and will emitSubscriber.onError(Throwable)if there is a mismatch. Replaying: No replay.
-
Method Details
-
onBackpressureBuffer
ASinks.Manywith the following characteristics:- Unicast: contrary to most other
Sinks.Many, theFluxview rejectssubscriberspast the first one. - Backpressure : this sink honors downstream demand of its single
Subscriber. - Replaying: non-applicable, since only one
Subscribercan register. - Without
Subscriber: all elements pushed to this sink are remembered and will be replayed once theSubscribersubscribes.
- Unicast: contrary to most other
-
onBackpressureBuffer
ASinks.Manywith the following characteristics:- Unicast: contrary to most other
Sinks.Many, theFluxview rejectssubscriberspast the first one. - Backpressure : this sink honors downstream demand of its single
Subscriber. - Replaying: non-applicable, since only one
Subscribercan register. - Without
Subscriber: depending on the queue, all elements pushed to this sink are remembered and will be replayed once theSubscribersubscribes.
- Parameters:
queue- an arbitrary queue to use that must at least support Single Producer / Single Consumer semantics
- Unicast: contrary to most other
-
onBackpressureBuffer
ASinks.Manywith the following characteristics:- Unicast: contrary to most other
Sinks.Many, theFluxview rejectssubscriberspast the first one. - Backpressure : this sink honors downstream demand of its single
Subscriber. - Replaying: non-applicable, since only one
Subscribercan register. - Without
Subscriber: depending on the queue, all elements pushed to this sink are remembered and will be replayed once theSubscribersubscribes.
- Parameters:
queue- an arbitrary queue to use that must at least support Single Producer / Single Consumer semanticsendCallback- when a terminal signal is observed: error, complete or cancel
- Unicast: contrary to most other
-
onBackpressureError
ASinks.Manywith the following characteristics:- Unicast: contrary to most other
Sinks.Many, theFluxview rejectssubscriberspast the first one. - Backpressure : this sink honors downstream demand of the Subscriber, and will emit
Subscriber.onError(Throwable)if there is a mismatch. - Replaying: No replay. Only forwards to a
Subscriberthe elements that have been pushed to the sink AFTER this subscriber was subscribed.
- Unicast: contrary to most other
-