Class MultiItemCombine7<T1,​T2,​T3,​T4,​T5,​T6,​T7>

    • Constructor Detail

      • MultiItemCombine7

        public MultiItemCombine7​(java.lang.Iterable<org.reactivestreams.Publisher<?>> iterable)
    • Method Detail

      • latestItems

        @CheckReturnValue
        public MultiItemCombine7<T1,​T2,​T3,​T4,​T5,​T6,​T7> latestItems()
        By default, the combination logic is called with one item of each observed stream. It waits until all the upstreams emit an item, and it invokes the combination logic. In other words, it associated the items from different streams having the same index. If one of the streams completes, the produced stream also completes.

        With this method, you can change this behavior and call the combination logic when one of the observed streams emits an item. It calls the combination logic with this new item and the latest items emitted by the other streams.

        It waits until all the streams have emitted at least one item before calling the combination logic. If one of the streams completes before emitting a value, the produced stream also completes without emitting an item.

        Overrides:
        latestItems in class MultiItemCombineIterable
        Returns:
        the current MultiItemCombine7
      • using

        @CheckReturnValue
        public <O> Multi<O> using​(Functions.Function7<T1,​T2,​T3,​T4,​T5,​T6,​T7,​O> combinator)
        Creates the resulting Multi. The items are combined using the given combinator function.
        Type Parameters:
        O - the type of item
        Parameters:
        combinator - the combinator function, must not be null
        Returns:
        the resulting Multi.