Module io.helidon.common.reactive
Package io.helidon.common.reactive
Class MultiCoupledProcessor<T,R>
- java.lang.Object
-
- io.helidon.common.reactive.MultiCoupledProcessor<T,R>
-
- Type Parameters:
T- Inlet and passed in subscriber item typeR- Outlet and passed in publisher item type
- All Implemented Interfaces:
Multi<R>,Subscribable<R>,Flow.Processor<T,R>,Flow.Publisher<R>,Flow.Subscriber<T>
public class MultiCoupledProcessor<T,R> extends Object implements Flow.Processor<T,R>, Multi<R>
Coupled processor sends items received to the passed in subscriber, and emits items received from the passed in publisher.+ | Inlet/upstream publisher +-------+ | | | passed in subscriber | +--------------------------> | | passed in publisher | +--------------------------+ | | | +-------+ | Outlet/downstream subscriber v
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,R>
MultiCoupledProcessor<T,R>create(Flow.Subscriber<T> passedInSubscriber, Flow.Publisher<R> passedInPublisher)Create newMultiCoupledProcessor.voidonComplete()voidonError(Throwable t)voidonNext(T t)voidonSubscribe(Flow.Subscription inletSubscription)voidsubscribe(Flow.Subscriber<? super R> outletSubscriber)-
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, collectList, distinct, dropWhile, filter, first, flatMap, flatMapIterable, forEach, limit, map, peek, skip, takeWhile
-
Methods inherited from interface io.helidon.common.reactive.Subscribable
onComplete, onError, onErrorResume, onErrorResumeWith, onTerminate, subscribe, subscribe, subscribe, subscribe
-
-
-
-
Method Detail
-
create
public static <T,R> MultiCoupledProcessor<T,R> create(Flow.Subscriber<T> passedInSubscriber, Flow.Publisher<R> passedInPublisher)
Create newMultiCoupledProcessor.- Type Parameters:
T- Inlet and passed in subscriber item typeR- Outlet and passed in publisher item type- Parameters:
passedInSubscriber- to send items from inlet topassedInPublisher- to get items for outlet from- Returns:
MultiCoupledProcessor
-
subscribe
public void subscribe(Flow.Subscriber<? super R> outletSubscriber)
- Specified by:
subscribein interfaceFlow.Publisher<T>
-
onSubscribe
public void onSubscribe(Flow.Subscription inletSubscription)
- Specified by:
onSubscribein interfaceFlow.Subscriber<T>
-
onNext
public void onNext(T t)
- Specified by:
onNextin interfaceFlow.Subscriber<T>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceFlow.Subscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceFlow.Subscriber<T>
-
-