Class MultiGroup<T>

java.lang.Object
io.smallrye.mutiny.groups.MultiGroup<T>

public class MultiGroup<T> extends Object
  • Constructor Details

    • MultiGroup

      public MultiGroup(Multi<T> upstream)
  • Method Details

    • intoLists

      @CheckReturnValue public MultiGroupIntoLists<T> intoLists()
      Splits the upstream Multi into List of items and emits these lists. The returned object configures how the split is made.
      Returns:
      the split configuration
    • intoMultis

      @CheckReturnValue public MultiGroupIntoMultis<T> intoMultis()
      Splits the upstream Multi into Multi of items and emits these Multi. It transforms the upstream Multi into a Multi<Multi<T>>, where each emitted multi contains items from the upstream.

      The returned object configures how the split is made.

      Returns:
      the split configuration
    • by

      @CheckReturnValue public <K> Multi<GroupedMulti<K,T>> by(Function<? super T,? extends K> keyMapper)
    • by

      @CheckReturnValue public <K, V> Multi<GroupedMulti<K,V>> by(Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper)
    • by

      @CheckReturnValue public <K> Multi<GroupedMulti<K,T>> by(Function<? super T,? extends K> keyMapper, long prefetch)
    • by

      @CheckReturnValue public <K, V> Multi<GroupedMulti<K,V>> by(Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper, long prefetch)