Top Description Fields Constructors Methods
io.reactivex.internal.operators.parallel

public final Class ParallelFromArray<T>

extends ParallelFlowable<T>
Class Inheritance
Type Parameters
<T>
the value type
Imports
org.reactivestreams.*, io.reactivex.parallel.ParallelFlowable

Wraps multiple Publishers into a ParallelFlowable which runs them in parallel.

Field Summary

Modifier and TypeField and Description
pack-priv final Publisher<T>[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
parallelism()

Implements abstract io.reactivex.parallel.ParallelFlowable.parallelism.

Returns the number of expected parallel Subscribers.
public void
subscribe(Subscriber<? super T>[]
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.reactivex.parallel.ParallelFlowable.subscribe.

Subscribes an array of Subscribers to this ParallelFlowable and triggers the execution chain for all 'rails'.
Inherited from io.reactivex.parallel.ParallelFlowable:
ascollectcomposeconcatMapconcatMapconcatMapDelayErrorconcatMapDelayErrordoAfterNextdoAfterTerminateddoOnCanceldoOnCompletedoOnErrordoOnNextdoOnNextdoOnNextdoOnRequestdoOnSubscribefilterfilterfilterflatMapflatMapflatMapflatMapfromfromfromfromArraymapmapmapreducereducerunOnrunOnsequentialsequentialsequentialDelayErrorsequentialDelayErrorsortedsortedtotoSortedListtoSortedListvalidate

Field Detail

sourcesback to summary
pack-priv final Publisher<T>[] sources

Constructor Detail

ParallelFromArrayback to summary
public ParallelFromArray(Publisher<T>[] sources)

Method Detail

parallelismback to summary
public int parallelism()

Implements abstract io.reactivex.parallel.ParallelFlowable.parallelism.

Doc from io.reactivex.parallel.ParallelFlowable.parallelism.

Returns the number of expected parallel Subscribers.

Returns:int

the number of expected parallel Subscribers

Annotations
@Override
subscribeback to summary
public void subscribe(Subscriber<? super T>[] subscribers)

Implements abstract io.reactivex.parallel.ParallelFlowable.subscribe.

Doc from io.reactivex.parallel.ParallelFlowable.subscribe.

Subscribes an array of Subscribers to this ParallelFlowable and triggers the execution chain for all 'rails'.

Parameters
subscribers:Subscriber<? super T>[]

the subscribers array to run in parallel, the number of items must be equal to the parallelism level of this ParallelFlowable

Annotations
@Override