Package io.helidon.common.reactive
Interface Subscribable<T>
-
- Type Parameters:
T- item type
- All Superinterfaces:
Flow.Publisher<T>
public interface Subscribable<T> extends Flow.Publisher<T>
Decorated publisher that allows subscribing to individual events with java functions.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsubscribe(Consumer<? super T> consumer)Subscribe to thisSingleinstance with the given delegate functions.default voidsubscribe(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer)Subscribe to thisSingleinstance with the given delegate functions.default voidsubscribe(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer, Runnable completeConsumer)Subscribe to thisSingleinstance with the given delegate functions.default voidsubscribe(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer, Runnable completeConsumer, Consumer<? super Flow.Subscription> subscriptionConsumer)Subscribe to thisSingleinstance with the given delegate functions.-
Methods inherited from interface io.helidon.common.reactive.Flow.Publisher
subscribe
-
-
-
-
Method Detail
-
subscribe
default void subscribe(Consumer<? super T> consumer)
Subscribe to thisSingleinstance with the given delegate functions.- Parameters:
consumer- onNext delegate function
-
subscribe
default void subscribe(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer)
Subscribe to thisSingleinstance with the given delegate functions.- Parameters:
consumer- onNext delegate functionerrorConsumer- onError delegate function
-
subscribe
default void subscribe(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer, Runnable completeConsumer)
Subscribe to thisSingleinstance with the given delegate functions.- Parameters:
consumer- onNext delegate functionerrorConsumer- onError delegate functioncompleteConsumer- onComplete delegate function
-
subscribe
default void subscribe(Consumer<? super T> consumer, Consumer<? super Throwable> errorConsumer, Runnable completeConsumer, Consumer<? super Flow.Subscription> subscriptionConsumer)
Subscribe to thisSingleinstance with the given delegate functions.- Parameters:
consumer- onNext delegate functionerrorConsumer- onError delegate functioncompleteConsumer- onComplete delegate functionsubscriptionConsumer- onSusbcribe delegate function
-
-