- java.lang.Object
-
- io.helidon.common.reactive.BaseProcessor<T,U>
-
- io.helidon.common.reactive.MultiMapProcessor<T,U>
-
- Type Parameters:
T- subscribed typeU- published type
- All Implemented Interfaces:
Multi<U>,Subscribable<U>,Flow.Processor<T,U>,Flow.Publisher<U>,Flow.Subscriber<T>,Flow.Subscription
public final class MultiMapProcessor<T,U> extends BaseProcessor<T,U> implements Multi<U>
Processor ofFlow.PublishertoSinglethat publishes and maps each received item.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,U>
MultiMapProcessor<T,U>create(Mapper<T,U> mapper)Processor ofFlow.PublishertoSinglethat publishes and maps each received item.protected voidsubmit(T item)Invoke actual onNext signal to down stream.-
Methods inherited from class io.helidon.common.reactive.BaseProcessor
cancel, complete, complete, downstreamSubscribe, getError, getSubscriber, getSubscription, next, onComplete, onError, onNext, onSubscribe, request, setError, subscribe
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.Flow.Publisher
subscribe
-
Methods inherited from interface io.helidon.common.reactive.Multi
collect, collect, collectList, collectStream, defaultIfEmpty, distinct, dropWhile, filter, first, flatMap, flatMap, flatMapIterable, flatMapIterable, forEach, limit, map, onComplete, onError, onErrorResume, onErrorResumeWith, onTerminate, peek, reduce, reduce, skip, switchIfEmpty, takeUntil, takeWhile
-
Methods inherited from interface io.helidon.common.reactive.Subscribable
subscribe, subscribe, subscribe, subscribe
-
-
-
-
Method Detail
-
create
public static <T,U> MultiMapProcessor<T,U> create(Mapper<T,U> mapper)
Processor ofFlow.PublishertoSinglethat publishes and maps each received item.- Type Parameters:
T- subscribed typeU- published type- Parameters:
mapper- supplied for all items to be mapped with- Returns:
MultiMapProcessor
-
submit
protected void submit(T item)
Description copied from class:BaseProcessorInvoke actual onNext signal to down stream.- Specified by:
submitin classBaseProcessor<T,U>- Parameters:
item- to be sent down stream
-
-