public class MultiRepetition extends Object
| Constructor and Description |
|---|
MultiRepetition() |
| Modifier and Type | Method and Description |
|---|---|
<T> UniRepeat<T> |
completionStage(Supplier<? extends CompletionStage<? extends T>> supplier)
Creates a
Multi by repeating the items fired by the produced CompletionStage. |
<S,T> UniRepeat<T> |
completionStage(Supplier<S> stateSupplier,
Function<S,? extends CompletionStage<? extends T>> producer)
Creates a
Multi by repeating the items fired by the produced CompletionStage. |
<T> UniRepeat<T> |
supplier(Supplier<? extends T> supplier)
|
<S,T> UniRepeat<T> |
supplier(Supplier<S> stateSupplier,
Function<S,? extends T> producer)
|
<T> UniRepeat<T> |
uni(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(Supplier<? extends Uni<? extends T>> uniSupplier)
|
<S,T> UniRepeat<T> |
uni(Supplier<S> stateSupplier,
BiConsumer<S,UniEmitter<? super T>> consumer)
Creates a
Multi by repeating the items fired by the produced BiConsumer. |
<S,T> UniRepeat<T> |
uni(Supplier<S> stateSupplier,
Function<S,? extends Uni<? extends T>> producer)
|
public <S,T> UniRepeat<T> uni(Supplier<S> stateSupplier, Function<S,? extends Uni<? extends T>> producer)
Multi by repeating the items fired by the produced Uni.
The producer of Uni receives a shared state.S - the type of the shared stateT - the type of emitted itemstateSupplier - the state supplier, must not be null, must not return null.producer - the producer of Uni called for every requested repetitionpublic <T> UniRepeat<T> uni(Supplier<? extends Uni<? extends T>> uniSupplier)
T - the type of emitted itemuniSupplier - the producer of Uni called for every requested repetitionpublic <S,T> UniRepeat<T> completionStage(Supplier<S> stateSupplier, Function<S,? extends CompletionStage<? extends T>> producer)
Multi by repeating the items fired by the produced CompletionStage.
The producer of CompletionStage receives a shared state.S - the type of the shared stateT - the type of emitted itemstateSupplier - the state producer, must not be null, must not return null.producer - the producer of CompletionStage called for every requested repetitionpublic <T> UniRepeat<T> completionStage(Supplier<? extends CompletionStage<? extends T>> supplier)
Multi by repeating the items fired by the produced CompletionStage.T - the type of emitted itemsupplier - the producer of CompletionStage called for every requested repetitionpublic <S,T> UniRepeat<T> uni(Supplier<S> stateSupplier, BiConsumer<S,UniEmitter<? super T>> consumer)
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).S - the type of the shared stateT - the type of emitted itemstateSupplier - the state supplier, must not be null, must not return null.consumer - the consumer called for every requested repetitionpublic <T> UniRepeat<T> uni(Consumer<UniEmitter<? super T>> consumer)
Multi by repeating the items fired by the produced Consumer
receiving an UniEmitter to fire the item or failure.T - the type of emitted itemconsumer - the consumer called for every requested repetitionpublic <T> UniRepeat<T> supplier(Supplier<? extends T> supplier)
T - the type of emitted itemsupplier - the producer called for every requested repetitionpublic <S,T> UniRepeat<T> supplier(Supplier<S> stateSupplier, Function<S,? extends T> producer)
Multi by repeating the items fired by the produced Function
producing the items. The function receives a shared state.S - the type of the shared stateT - the type of emitted itemstateSupplier - the state supplier, must not be null, must not return null.producer - the producer called for every requested repetitionCopyright © 2019–2020 SmallRye. All rights reserved.