T
- the input value typeR
- the result value typepublic final class ParallelReduce<T,R> extends ParallelFlowable<R>
Constructor and Description |
---|
ParallelReduce(ParallelFlowable<? extends T> source,
Callable<R> initialSupplier,
BiFunction<R,? super T,R> reducer) |
Modifier and Type | Method and Description |
---|---|
int |
parallelism()
Returns the number of expected parallel Subscribers.
|
void |
subscribe(org.reactivestreams.Subscriber<? super R>[] 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 ParallelReduce(ParallelFlowable<? extends T> source, Callable<R> initialSupplier, BiFunction<R,? super T,R> reducer)
public void subscribe(org.reactivestreams.Subscriber<? super R>[] subscribers)
ParallelFlowable
subscribe
in class ParallelFlowable<R>
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<R>
Copyright © 2019. All rights reserved.