Class MultiRepetition


  • public class MultiRepetition
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiRepetition()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> UniRepeat<T> completionStage​(java.util.function.Supplier<? extends java.util.concurrent.CompletionStage<? extends T>> supplier)
      Creates a Multi by repeating the items fired by the produced CompletionStage.
      <S,​T>
      UniRepeat<T>
      completionStage​(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,​? extends java.util.concurrent.CompletionStage<? extends T>> producer)
      Creates a Multi by repeating the items fired by the produced CompletionStage.
      <T> UniRepeat<T> supplier​(java.util.function.Supplier<? extends T> supplier)
      Creates a Multi by repeating the items fired by the produced Function producing the items.
      <S,​T>
      UniRepeat<T>
      supplier​(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,​? extends T> producer)
      Creates a Multi by repeating the items fired by the produced Function producing the items.
      <T> UniRepeat<T> uni​(java.util.function.Consumer<UniEmitter<? super T>> consumer)
      Creates a Multi by repeating the items fired by the produced Consumer receiving an UniEmitter to fire the item or failure.
      <T> UniRepeat<T> uni​(java.util.function.Supplier<Uni<? extends T>> uniSupplier)
      Creates a Multi by repeating the items fired by the produced Uni.
      <S,​T>
      UniRepeat<T>
      uni​(java.util.function.Supplier<S> stateSupplier, java.util.function.BiConsumer<S,​UniEmitter<? super T>> consumer)
      Creates a Multi by repeating the items fired by the produced BiConsumer.
      <S,​T>
      UniRepeat<T>
      uni​(java.util.function.Supplier<S> stateSupplier, java.util.function.Function<S,​Uni<? extends T>> producer)
      Creates a Multi by repeating the items fired by the produced Uni.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiRepetition

        public MultiRepetition()
    • Method Detail

      • uni

        @CheckReturnValue
        public <S,​T> UniRepeat<T> uni​(java.util.function.Supplier<S> stateSupplier,
                                            java.util.function.Function<S,​Uni<? extends T>> producer)
        Creates a Multi by repeating the items fired by the produced Uni. The producer of Uni receives a shared state.
        Type Parameters:
        S - the type of the shared state
        T - the type of emitted item
        Parameters:
        stateSupplier - the state supplier, must not be null, must not return null.
        producer - the producer of Uni called for every requested repetition
        Returns:
        the object to configure the repetition
      • uni

        @CheckReturnValue
        public <T> UniRepeat<T> uni​(java.util.function.Supplier<Uni<? extends T>> uniSupplier)
        Creates a Multi by repeating the items fired by the produced Uni.
        Type Parameters:
        T - the type of emitted item
        Parameters:
        uniSupplier - the producer of Uni called for every requested repetition
        Returns:
        the object to configure the repetition
      • completionStage

        @CheckReturnValue
        public <S,​T> UniRepeat<T> completionStage​(java.util.function.Supplier<S> stateSupplier,
                                                        java.util.function.Function<S,​? extends java.util.concurrent.CompletionStage<? extends T>> producer)
        Creates a Multi by repeating the items fired by the produced CompletionStage. The producer of CompletionStage receives a shared state.
        Type Parameters:
        S - the type of the shared state
        T - the type of emitted item
        Parameters:
        stateSupplier - the state producer, must not be null, must not return null.
        producer - the producer of CompletionStage called for every requested repetition
        Returns:
        the object to configure the repetition
      • completionStage

        @CheckReturnValue
        public <T> UniRepeat<T> completionStage​(java.util.function.Supplier<? extends java.util.concurrent.CompletionStage<? extends T>> supplier)
        Creates a Multi by repeating the items fired by the produced CompletionStage.
        Type Parameters:
        T - the type of emitted item
        Parameters:
        supplier - the producer of CompletionStage called for every requested repetition
        Returns:
        the object to configure the repetition
      • uni

        @CheckReturnValue
        public <S,​T> UniRepeat<T> uni​(java.util.function.Supplier<S> stateSupplier,
                                            java.util.function.BiConsumer<S,​UniEmitter<? super T>> consumer)
        Creates a Multi by repeating the items fired by the produced BiConsumer. The bi-consumer receives the shared state and an UniEmitter that allow firing the item (or failure).
        Type Parameters:
        S - the type of the shared state
        T - the type of emitted item
        Parameters:
        stateSupplier - the state supplier, must not be null, must not return null.
        consumer - the consumer called for every requested repetition
        Returns:
        the object to configure the repetition
      • uni

        @CheckReturnValue
        public <T> UniRepeat<T> uni​(java.util.function.Consumer<UniEmitter<? super T>> consumer)
        Creates a Multi by repeating the items fired by the produced Consumer receiving an UniEmitter to fire the item or failure.
        Type Parameters:
        T - the type of emitted item
        Parameters:
        consumer - the consumer called for every requested repetition
        Returns:
        the object to configure the repetition
      • supplier

        @CheckReturnValue
        public <T> UniRepeat<T> supplier​(java.util.function.Supplier<? extends T> supplier)
        Creates a Multi by repeating the items fired by the produced Function producing the items.
        Type Parameters:
        T - the type of emitted item
        Parameters:
        supplier - the producer called for every requested repetition
        Returns:
        the object to configure the repetition
      • supplier

        @CheckReturnValue
        public <S,​T> UniRepeat<T> supplier​(java.util.function.Supplier<S> stateSupplier,
                                                 java.util.function.Function<S,​? extends T> producer)
        Creates a Multi by repeating the items fired by the produced Function producing the items. The function receives a shared state.
        Type Parameters:
        S - the type of the shared state
        T - the type of emitted item
        Parameters:
        stateSupplier - the state supplier, must not be null, must not return null.
        producer - the producer called for every requested repetition
        Returns:
        the object to configure the repetition