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
Nested ClassesModifier and TypeClassDescriptionstatic classMulti 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 givenRunnablewhen a cancel signal is received.onComplete(Runnable onComplete) Executes givenRunnablewhen onComplete signal is received.Executes givenRunnablewhen onError signal is received.onTerminate(Runnable onTerminate) Executes givenRunnablewhen any of signals onComplete, onCancel or onError is received.Invoke provided consumer for every item in stream.voidsubscribe(Flow.Subscriber<? super T> subscriber) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, toMethods 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:
subscribein interfaceFlow.Publisher<T>
-
onComplete
Description copied from interface:MultiExecutes givenRunnablewhen onComplete signal is received.- Specified by:
onCompletein interfaceMulti<T>- Specified by:
onCompletein interfaceSubscribable<T>- Parameters:
onComplete-Runnableto be executed.- Returns:
- Multi
-
onError
Description copied from interface:MultiExecutes givenRunnablewhen onError signal is received. -
onTerminate
Description copied from interface:MultiExecutes givenRunnablewhen any of signals onComplete, onCancel or onError is received.- Specified by:
onTerminatein interfaceMulti<T>- Specified by:
onTerminatein interfaceSubscribable<T>- Parameters:
onTerminate-Runnableto be executed.- Returns:
- Multi
-
peek
Description copied from interface:MultiInvoke provided consumer for every item in stream. -
onCancel
Description copied from interface:MultiExecutes givenRunnablewhen a cancel signal is received. -
operatorName
-