T
- the input value typeC
- the collection typepublic final class ParallelCollect<T,C> extends ParallelFlowable<C>
Constructor and Description |
---|
ParallelCollect(ParallelFlowable<? extends T> source,
Callable<? extends C> initialCollection,
BiConsumer<? super C,? super T> collector) |
Modifier and Type | Method and Description |
---|---|
int |
parallelism()
Returns the number of expected parallel Subscribers.
|
void |
subscribe(org.reactivestreams.Subscriber<? super C>[] subscribers)
Subscribes an array of Subscribers to this ParallelFlowable and triggers
the execution chain for all 'rails'.
|
as, collect, compose, concatMap, concatMap, concatMapDelayError, concatMapDelayError, doAfterNext, doAfterTerminated, doOnCancel, doOnComplete, doOnError, doOnNext, doOnNext, doOnNext, doOnRequest, doOnSubscribe, filter, filter, filter, flatMap, flatMap, flatMap, flatMap, from, from, from, fromArray, map, map, map, reduce, reduce, runOn, runOn, sequential, sequential, sequentialDelayError, sequentialDelayError, sorted, sorted, to, toSortedList, toSortedList, validate
public ParallelCollect(ParallelFlowable<? extends T> source, Callable<? extends C> initialCollection, BiConsumer<? super C,? super T> collector)
public void subscribe(org.reactivestreams.Subscriber<? super C>[] subscribers)
ParallelFlowable
subscribe
in class ParallelFlowable<C>
subscribers
- the subscribers array to run in parallel, the number
of items must be equal to the parallelism level of this ParallelFlowableParallelFlowable.parallelism()
public int parallelism()
ParallelFlowable
parallelism
in class ParallelFlowable<C>
Copyright © 2018 JBoss by Red Hat. All rights reserved.