-
- Type Parameters:
T- item type
- All Superinterfaces:
Flow.Publisher<T>
- All Known Subinterfaces:
HybridProcessor<T,R>,Multi<T>,Single<T>
- All Known Implementing Classes:
ConcatPublisher,MultiCoupledProcessor,MultiDistinctProcessor,MultiDropWhileProcessor,MultiFilterProcessor,MultiFlatMapProcessor,MultiLimitProcessor,MultiMapProcessor,MultiOnErrorResumeProcessor,MultiPeekProcessor,MultiSkipProcessor,MultiTakeWhileProcessor,MultiTappedProcessor
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 java.util.concurrent.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
-
-