Class ParallelFlatMapIterable<T,​R>

  • Type Parameters:
    T - the input value type
    R - the output value type

    public final class ParallelFlatMapIterable<T,​R>
    extends ParallelFlowable<R>
    Flattens the generated Iterables on each rail.
    Since:
    3.0.0
    • Field Detail

      • mapper

        final Function<? super T,​? extends java.lang.Iterable<? extends R>> mapper
      • prefetch

        final int prefetch
    • Constructor Detail

      • ParallelFlatMapIterable

        public ParallelFlatMapIterable​(ParallelFlowable<T> source,
                                       Function<? super T,​? extends java.lang.Iterable<? extends R>> mapper,
                                       int prefetch)
    • Method Detail

      • parallelism

        public int parallelism()
        Description copied from class: ParallelFlowable
        Returns the number of expected parallel Subscribers.
        Specified by:
        parallelism in class ParallelFlowable<R>
        Returns:
        the number of expected parallel Subscribers
      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super R>[] subscribers)
        Description copied from class: ParallelFlowable
        Subscribes an array of Subscribers to this ParallelFlowable and triggers the execution chain for all 'rails'.
        Backpressure:
        The backpressure behavior/expectation is determined by the supplied Subscriber.
        Scheduler:
        subscribe does not operate by default on a particular Scheduler.
        Specified by:
        subscribe in class ParallelFlowable<R>
        Parameters:
        subscribers - the subscribers array to run in parallel, the number of items must be equal to the parallelism level of this ParallelFlowable
        See Also:
        ParallelFlowable.parallelism()