| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Callable | |
| pack-priv final BiFunction | |
| pack-priv final ParallelFlowable |
| Access | Constructor and Description |
|---|---|
| public | ParallelReduce(ParallelFlowable<? extends T> source, Callable<R> initialSupplier, BiFunction<R, ? super T, R> reducer)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | parallelism()
Implements abstract io. |
| pack-priv void | |
| public void | subscribe(Subscriber<? super R>[]
the subscribers array to run in parallel, the number
of items must be equal to the parallelism level of this ParallelFlowable subscribers)Implements abstract io. |
| initialSupplier | back to summary |
|---|---|
| pack-priv final Callable<R> initialSupplier | |
| reducer | back to summary |
|---|---|
| pack-priv final BiFunction<R, ? super T, R> reducer | |
| source | back to summary |
|---|---|
| pack-priv final ParallelFlowable<? extends T> source | |
| ParallelReduce | back to summary |
|---|---|
| public ParallelReduce(ParallelFlowable<? extends T> source, Callable<R> initialSupplier, BiFunction<R, ? super T, R> reducer) | |
| parallelism | back to summary |
|---|---|
| public int parallelism() Implements abstract io. Doc from io. Returns the number of expected parallel Subscribers.
| |
| reportError | back to summary |
|---|---|
| pack-priv void reportError(Subscriber<?>[] subscribers, Throwable ex) | |
| subscribe | back to summary |
|---|---|
| public void subscribe(Subscriber<? super R>[] subscribers) Implements abstract io. Doc from io. Subscribes an array of Subscribers to this ParallelFlowable and triggers the execution chain for all 'rails'.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv R | |
| pack-priv boolean | |
| pack-priv final BiFunction | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParallelReduceSubscriber(Subscriber<? super R> subscriber, R initialValue, BiFunction<R, ? super T, R> reducer)
|
| accumulator | back to summary |
|---|---|
| pack-priv R accumulator | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| reducer | back to summary |
|---|---|
| pack-priv final BiFunction<R, ? super T, R> reducer | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| ParallelReduceSubscriber | back to summary |
|---|---|
| pack-priv ParallelReduceSubscriber(Subscriber<? super R> subscriber, R initialValue, BiFunction<R, ? super T, R> reducer) | |
| cancel | back to summary |
|---|---|
| public void cancel() Overrides io. Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Overrides io. Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Overrides io. Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Overrides io. Implements io. Doc from io. Implementors of this method should make sure everything that needs
to be visible in
No data will start flowing until
It is the responsibility of this
The
| |