-
- All Implemented Interfaces:
public final class FluxJoinerComposer<T extends Object> extends JoinerComposerWithReceiver<T, List<T>, Flux<T>>
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ExecutionStep<?>>steps
-
Constructor Summary
Constructors Constructor Description FluxJoinerComposer(List<ExecutionStep<?>> steps)
-
Method Summary
Modifier and Type Method Description final List<ExecutionStep<?>>getSteps()List of async steps to be executed final <E extends Any> FluxJoinerComposer<E>map(Function1<T, E> mapper)Transforms the items emitted by the previous step using synchronous mapper function. final <E extends Any> FluxJoinerComposer<E>flatMap(Function1<T, Mono<E>> mapper)Asynchronously transforms the items emitted by the previous step using mapper function. final FluxJoinerComposer<T>filter(Function1<T, Boolean> predicate)Test each emitted item against the predicate, ignore items which does not pass final MonoJoinerComposer<List<T>>collectToList()Collect all emitted items into a List, which is then emitted as a Mono -
Methods inherited from class cz.encircled.joiner.reactive.composer.FluxJoinerComposer
find, findOne, findOneOptional, persist, persistMultiple -
Methods inherited from class cz.encircled.joiner.reactive.composer.JoinerComposerWithReceiver
find, findOne, findOneOptional, just, just, persist, persist -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FluxJoinerComposer
FluxJoinerComposer(List<ExecutionStep<?>> steps)
-
-
Method Detail
-
getSteps
final List<ExecutionStep<?>> getSteps()
List of async steps to be executed
-
map
final <E extends Any> FluxJoinerComposer<E> map(Function1<T, E> mapper)
Transforms the items emitted by the previous step using synchronous mapper function.
-
flatMap
final <E extends Any> FluxJoinerComposer<E> flatMap(Function1<T, Mono<E>> mapper)
Asynchronously transforms the items emitted by the previous step using mapper function.
-
filter
final FluxJoinerComposer<T> filter(Function1<T, Boolean> predicate)
Test each emitted item against the predicate, ignore items which does not pass
-
collectToList
final MonoJoinerComposer<List<T>> collectToList()
Collect all emitted items into a List, which is then emitted as a Mono
-
-
-
-