public class MultiTransform<T> extends Object
| Constructor and Description |
|---|
MultiTransform(Multi<T> upstream) |
| Modifier and Type | Method and Description |
|---|---|
Multi<T> |
byDroppingDuplicates() |
Multi<T> |
byDroppingRepetitions() |
Multi<T> |
byFilteringItemsWith(Predicate<? super T> predicate)
|
Multi<T> |
byMergingWith(Iterable<org.reactivestreams.Publisher<T>> iterable) |
Multi<T> |
byMergingWith(org.reactivestreams.Publisher<T>... publishers) |
Multi<T> |
bySkippingFirstItems(long number) |
Multi<T> |
bySkippingItemsFor(Duration duration) |
Multi<T> |
bySkippingItemsWhile(Predicate<? super T> predicate) |
Multi<T> |
bySkippingLastItems(int number) |
Multi<T> |
byTakingFirstItems(long number) |
Multi<T> |
byTakingItemsFor(Duration duration) |
Multi<T> |
byTakingItemsWhile(Predicate<? super T> predicate) |
Multi<T> |
byTakingLastItems(int number) |
Multi<T> |
byTestingItemsWith(Function<? super T,? extends Uni<Boolean>> tester)
|
Multi<T> |
toHotStream()
Produces a new
Multi transforming the upstream into a hot stream. |
@SafeVarargs public final Multi<T> byMergingWith(org.reactivestreams.Publisher<T>... publishers)
public Multi<T> byFilteringItemsWith(Predicate<? super T> predicate)
predicate - the predicate, must not be nullMultipublic Multi<T> byTestingItemsWith(Function<? super T,? extends Uni<Boolean>> tester)
Multi containing the items from this Multi passing the tester
asynchronous test. Unlike byFilteringItemsWith(Predicate), the test is asynchronous. Note that this method
preserves ordering of the items, even if the test is asynchronous.tester - the predicate, must not be null, must not produce nullMultipublic Multi<T> toHotStream()
Multi transforming the upstream into a hot stream.
With a hot stream, when no subscribers are present, emitted items are dropped.
Late subscribers would only receive items emitted after their subscription.
If the upstream has already been terminated, the termination event (failure or completion) is forwarded to the
subscribers.
Note that this operator consumes the upstream stream without back-pressure.
It still enforces downstream back-pressure.
If the subscriber is not ready to receive an item when the upstream emits an item, the subscriber gets a
BackPressureFailure failure.Copyright © 2019–2020 SmallRye. All rights reserved.