Module io.helidon.common.reactive
Package io.helidon.common.reactive
Class MultiTappedPublisher.Builder<T>
- java.lang.Object
- 
- io.helidon.common.reactive.MultiTappedPublisher.Builder<T>
 
- 
- Type Parameters:
- T- type of returned multi
 - All Implemented Interfaces:
- Builder<MultiTappedPublisher<T>>,- Supplier<MultiTappedPublisher<T>>
 - Enclosing class:
- MultiTappedPublisher<T>
 
 public static class MultiTappedPublisher.Builder<T> extends Object implements Builder<MultiTappedPublisher<T>> Multi tapped publisher builder to register custom callbacks.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiTappedPublisher<T>build()Build the instance from this builder.MultiTappedPublisher.Builder<T>onCancelCallback(Runnable onCancelCallback)On cancel callback.MultiTappedPublisher.Builder<T>onCompleteCallback(Runnable onCompleteCallback)On complete callback.MultiTappedPublisher.Builder<T>onErrorCallback(Consumer<? super Throwable> onErrorCallback)On error callback.MultiTappedPublisher.Builder<T>onNextCallback(Consumer<? super T> onNextCallback)On next callback.MultiTappedPublisher.Builder<T>onRequestCallback(LongConsumer onRequestCallback)On request callback.MultiTappedPublisher.Builder<T>onSubscribeCallback(Runnable onSubscribeCallback)Subscription callback.
 
- 
- 
- 
Method Detail- 
buildpublic MultiTappedPublisher<T> build() Description copied from interface:BuilderBuild the instance from this builder.
 - 
onSubscribeCallbackpublic MultiTappedPublisher.Builder<T> onSubscribeCallback(Runnable onSubscribeCallback) Subscription callback.- Parameters:
- onSubscribeCallback- runnable to run when- Flow.Subscriber.onSubscribe(java.util.concurrent.Flow.Subscription)is called
- Returns:
- updated builder instance
 
 - 
onNextCallbackpublic MultiTappedPublisher.Builder<T> onNextCallback(Consumer<? super T> onNextCallback) On next callback.- Parameters:
- onNextCallback- runnable to run when- Flow.Subscriber.onNext(Object)is called
- Returns:
- updated builder instance
 
 - 
onCompleteCallbackpublic MultiTappedPublisher.Builder<T> onCompleteCallback(Runnable onCompleteCallback) On complete callback.- Parameters:
- onCompleteCallback- runnable to run when- Flow.Subscriber.onComplete()is called
- Returns:
- updated builder instance
 
 - 
onRequestCallbackpublic MultiTappedPublisher.Builder<T> onRequestCallback(LongConsumer onRequestCallback) On request callback.- Parameters:
- onRequestCallback- runnable to run when- Flow.Subscription.request(long)is called
- Returns:
- updated builder instance
 
 - 
onCancelCallbackpublic MultiTappedPublisher.Builder<T> onCancelCallback(Runnable onCancelCallback) On cancel callback.- Parameters:
- onCancelCallback- runnable to run when- Flow.Subscription.cancel()is called
- Returns:
- updated builder instance
 
 - 
onErrorCallbackpublic MultiTappedPublisher.Builder<T> onErrorCallback(Consumer<? super Throwable> onErrorCallback) On error callback.- Parameters:
- onErrorCallback- runnable to run when- Flow.Subscriber.onError(Throwable)is called
- Returns:
- updated builder instance
 
 
- 
 
-