- java.lang.Object
-
- io.helidon.common.reactive.MultiFlatMapProcessor<T>
-
- Type Parameters:
T- item type
- All Implemented Interfaces:
Multi<T>,Subscribable<T>,Flow.Processor<T,T>,Flow.Publisher<T>,Flow.Subscriber<T>
public class MultiFlatMapProcessor<T> extends Object implements Flow.Processor<T,T>, Multi<T>
Flatten the elements emitted by publishers produced by the mapper function to this stream.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> MultiFlatMapProcessor<T>fromIterableMapper(Function<T,Iterable<T>> mapper)Create newMultiFlatMapProcessorwith item toIterablemapper.static <T> MultiFlatMapProcessor<T>fromPublisherMapper(Function<?,Flow.Publisher<T>> mapper)Create newMultiFlatMapProcessorwith item toFlow.Publishermapper.voidonComplete()voidonError(Throwable t)voidonNext(T o)voidonSubscribe(Flow.Subscription subscription)voidsubscribe(Flow.Subscriber<? super T> subscriber)-
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
-
fromIterableMapper
public static <T> MultiFlatMapProcessor<T> fromIterableMapper(Function<T,Iterable<T>> mapper)
Create newMultiFlatMapProcessorwith item toIterablemapper.- Type Parameters:
T- item type- Parameters:
mapper- to provide iterable for every item from upstream- Returns:
MultiFlatMapProcessor
-
fromPublisherMapper
public static <T> MultiFlatMapProcessor<T> fromPublisherMapper(Function<?,Flow.Publisher<T>> mapper)
Create newMultiFlatMapProcessorwith item toFlow.Publishermapper.- Type Parameters:
T- item type- Parameters:
mapper- to provide iterable for every item from upstream- Returns:
MultiFlatMapProcessor
-
subscribe
public void subscribe(Flow.Subscriber<? super T> subscriber)
- Specified by:
subscribein interfaceFlow.Publisher<T>
-
onSubscribe
public void onSubscribe(Flow.Subscription subscription)
- Specified by:
onSubscribein interfaceFlow.Subscriber<T>
-
onNext
public void onNext(T o)
- 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>
-
-