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

java.lang.Object
io.smallrye.mutiny.groups.MultiItemCombineIterable
io.smallrye.mutiny.groups.MultiItemCombine7<T1,T2,T3,T4,T5,T6,T7>

public class MultiItemCombine7<T1,T2,T3,T4,T5,T6,T7> extends MultiItemCombineIterable
  • Constructor Details

  • Method Details

    • collectFailures

      @CheckReturnValue public MultiItemCombine7<T1,T2,T3,T4,T5,T6,T7> collectFailures()
      Configures the combination to wait until all the streams to fire a completion or failure event before propagating a failure downstream.
      Overrides:
      collectFailures in class MultiItemCombineIterable
      Returns:
      the current MultiItemCombine7
    • 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
    • asTuple

      @CheckReturnValue public Multi<Tuple7<T1,T2,T3,T4,T5,T6,T7>> asTuple()
      Returns:
      the resulting Multi. The items are combined into a Tuple7<T1, T2, T3, T4, T5, T6, T7>.
    • 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.