R - value type@FunctionalInterface public interface SegmentAwarePublisher<R> extends SegmentCompletionPublisher<R>
SegmentCompletionPublisher except that it also allows listening for when a segment is
lost. The lost segment provides the same notification guarantees as the segment completion of the parent interface.
This interface is normally just for internal Infinispan usage as users shouldn't normally have to care about retrying.
If segment completion is not needed, use the Publisher.subscribe(Subscriber) or provided
SegmentCompletionPublisher.EMPTY_CONSUMER as the argument to both of the arguments in the
subscribe(Subscriber, IntConsumer, IntConsumer) method. This allows implementors to optimize for the case
when segment completion/loss is not needed as this may require additional overhead.
EMPTY_CONSUMER| Modifier and Type | Method and Description |
|---|---|
default void |
subscribe(org.reactivestreams.Subscriber<? super R> s,
IntConsumer completedSegmentConsumer)
Same as
Publisher.subscribe(Subscriber), except that we also can notify a listener
when a segment has published all of its entries |
void |
subscribe(org.reactivestreams.Subscriber<? super R> s,
IntConsumer completedSegmentConsumer,
IntConsumer lostSegmentConsumer)
Same as
SegmentCompletionPublisher.subscribe(Subscriber, IntConsumer), except that we also can notify a
listener when a segment has been lost before publishing all its entries |
subscribevoid subscribe(org.reactivestreams.Subscriber<? super R> s, IntConsumer completedSegmentConsumer, IntConsumer lostSegmentConsumer)
SegmentCompletionPublisher.subscribe(Subscriber, IntConsumer), except that we also can notify a
listener when a segment has been lost before publishing all its entriess - subscriber to be notified of values and completioncompletedSegmentConsumer - segment notifier to notifylostSegmentConsumer - segment notifier to notify of lost segmentsdefault void subscribe(org.reactivestreams.Subscriber<? super R> s, IntConsumer completedSegmentConsumer)
SegmentCompletionPublisherPublisher.subscribe(Subscriber), except that we also can notify a listener
when a segment has published all of its entriessubscribe in interface SegmentCompletionPublisher<R>s - subscriber to be notified of values and completioncompletedSegmentConsumer - segment notifier to notifyCopyright © 2022 JBoss by Red Hat. All rights reserved.