java.lang.Object
io.helidon.common.reactive.MultiTappedPublisher<T>
- Type Parameters:
T
- the element type of the sequence
- All Implemented Interfaces:
Multi<T>
,Subscribable<T>
,Flow.Publisher<T>
Intercept the calls to the various Flow interface methods and calls the appropriate
user callbacks.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Multi tapped publisher builder to register custom callbacks. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MultiTappedPublisher.Builder<T>
A builder to customize a multi tapped publisher instance.Executes givenRunnable
when a cancel signal is received.onComplete
(Runnable onComplete) Executes givenRunnable
when onComplete signal is received.Executes givenRunnable
when onError signal is received.onTerminate
(Runnable onTerminate) Executes givenRunnable
when any of signals onComplete, onCancel or onError is received.Invoke provided consumer for every item in stream.void
subscribe
(Flow.Subscriber<? super T> subscriber) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.common.reactive.Multi
collect, collect, collectList, collectStream, compose, defaultIfEmpty, defaultIfEmpty, distinct, dropWhile, filter, first, flatMap, flatMap, flatMapCompletionStage, flatMapIterable, flatMapIterable, flatMapOptional, forEach, forEachCompletionStage, ifEmpty, ignoreElements, limit, log, log, log, log, map, observeOn, observeOn, onCompleteResume, onCompleteResumeWith, onErrorResume, onErrorResumeWith, reduce, reduce, retry, retry, retryWhen, skip, switchIfEmpty, takeUntil, takeWhile, timeout, timeout, to
Methods inherited from interface io.helidon.common.reactive.Subscribable
subscribe, subscribe, subscribe, subscribe
-
Method Details
-
builder
A builder to customize a multi tapped publisher instance.- Type Parameters:
T
- type of the multi- Parameters:
source
- source to wrap- Returns:
- a new builder
-
subscribe
- Specified by:
subscribe
in interfaceFlow.Publisher<T>
-
onComplete
Description copied from interface:Multi
Executes givenRunnable
when onComplete signal is received.- Specified by:
onComplete
in interfaceMulti<T>
- Specified by:
onComplete
in interfaceSubscribable<T>
- Parameters:
onComplete
-Runnable
to be executed.- Returns:
- Multi
-
onError
Description copied from interface:Multi
Executes givenRunnable
when onError signal is received. -
onTerminate
Description copied from interface:Multi
Executes givenRunnable
when any of signals onComplete, onCancel or onError is received.- Specified by:
onTerminate
in interfaceMulti<T>
- Specified by:
onTerminate
in interfaceSubscribable<T>
- Parameters:
onTerminate
-Runnable
to be executed.- Returns:
- Multi
-
peek
Description copied from interface:Multi
Invoke provided consumer for every item in stream. -
onCancel
Description copied from interface:Multi
Executes givenRunnable
when a cancel signal is received. -
operatorName
-