Package reactor.core.publisher
Interface Sinks.MulticastReplaySpec
- Enclosing class:
- Sinks
public static interface Sinks.MulticastReplaySpec
Provides multicast with history/replay capacity : 1 sink, N
Subscriber-
Method Summary
Modifier and TypeMethodDescription<T> Sinks.Many<T>all()ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: all elements pushed to this sink are remembered, even when there is no subscriber. Backpressure : this sink honors downstream demand of individual subscribers. Replaying: all elements pushed to this sink are replayed to new subscribers.<T> Sinks.Many<T>all(int batchSize) ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: all elements pushed to this sink are remembered, even when there is no subscriber. Backpressure : this sink honors downstream demand of individual subscribers. Replaying: all elements pushed to this sink are replayed to new subscribers.<T> Sinks.Many<T>latest()ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: the latest element pushed to this sink are remembered, even when there is no subscriber.<T> Sinks.Many<T>latestOrDefault(T value) ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: the latest element pushed to this sink are remembered, even when there is no subscriber. Backpressure : this sink honors downstream demand of individual subscribers. Replaying: the latest element pushed to this sink is replayed to new subscribers.<T> Sinks.Many<T>limit(int historySize) ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: up tohistorySizeelements pushed to this sink are remembered, even when there is no subscriber.<T> Sinks.Many<T>ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: up tohistorySizeelements pushed to this sink are remembered, until theirmaxAgeis reached, even when there is no subscriber.<T> Sinks.Many<T>ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: up tohistorySizeelements pushed to this sink are remembered, until theirmaxAgeis reached, even when there is no subscriber.<T> Sinks.Many<T>ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: all elements pushed to this sink are remembered until theirmaxAgeis reached, even when there is no subscriber.<T> Sinks.Many<T>ASinks.Manywith the following characteristics: Multicast WithoutSubscriber: all elements pushed to this sink are remembered until theirmaxAgeis reached, even when there is no subscriber.
-
Method Details
-
all
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: all elements pushed to this sink are remembered, even when there is no subscriber. - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: all elements pushed to this sink are replayed to new subscribers.
-
all
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: all elements pushed to this sink are remembered, even when there is no subscriber. - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: all elements pushed to this sink are replayed to new subscribers.
- Parameters:
batchSize- the underlying buffer will optimize storage by linked arrays of given size
-
latest
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: the latest element pushed to this sink are remembered, even when there is no subscriber. Older elements are discarded - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: the latest element pushed to this sink is replayed to new subscribers.
-
latestOrDefault
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: the latest element pushed to this sink are remembered, even when there is no subscriber. - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: the latest element pushed to this sink is replayed to new subscribers. If none the default value is replayed
- Parameters:
value- default value if there is no latest element to replay
-
limit
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: up tohistorySizeelements pushed to this sink are remembered, even when there is no subscriber. Older elements are discarded - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: up to
historySizeelements pushed to this sink are replayed to new subscribers. Older elements are discarded.
Note that though historySize of zero is forbidden, the desired equivalent effect can usually be achieved with the
Durationbased variant:limit(Duration.ZERO).- Parameters:
historySize- maximum number of elements able to replayed, strictly positive
-
limit
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: all elements pushed to this sink are remembered until theirmaxAgeis reached, even when there is no subscriber. Older elements are discarded - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: up to
historySizeelements pushed to this sink are replayed to new subscribers. Older elements are discarded.
- Parameters:
maxAge- maximum retention time for elements to be retained
-
limit
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: all elements pushed to this sink are remembered until theirmaxAgeis reached, even when there is no subscriber. Older elements are discarded - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: up to
historySizeelements pushed to this sink are replayed to new subscribers. Older elements are discarded.
- Parameters:
maxAge- maximum retention time for elements to be retainedscheduler- aSchedulerto derive the time from
-
limit
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: up tohistorySizeelements pushed to this sink are remembered, until theirmaxAgeis reached, even when there is no subscriber. Older elements are discarded - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: up to
historySizeelements pushed to this sink are replayed to new subscribers. Older elements are discarded.
Note that though historySize of zero is forbidden, the desired equivalent effect can usually be achieved by setting the
maxAgetoDuration.ZERO.- Parameters:
historySize- maximum number of elements able to replayed, strictly positivemaxAge- maximum retention time for elements to be retained
-
limit
ASinks.Manywith the following characteristics:- Multicast
- Without
Subscriber: up tohistorySizeelements pushed to this sink are remembered, until theirmaxAgeis reached, even when there is no subscriber. Older elements are discarded. - Backpressure : this sink honors downstream demand of individual subscribers.
- Replaying: up to
historySizeelements pushed to this sink are replayed to new subscribers. Older elements are discarded.
Note that though historySize of zero is forbidden, the desired equivalent effect can usually be achieved by setting the
maxAgetoDuration.ZERO.- Parameters:
historySize- maximum number of elements able to replayed, strictly positivemaxAge- maximum retention time for elements to be retainedscheduler- aSchedulerto derive the time from
-