Package io.smallrye.mutiny.groups
Class MultiTransform<T>
- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiTransform<T>
-
public class MultiTransform<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MultiTransform(Multi<T> upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Multi<T>byDroppingDuplicates()Multi<T>byDroppingRepetitions()Multi<T>byFilteringItemsWith(java.util.function.Predicate<? super T> predicate)Multi<T>byMergingWith(java.lang.Iterable<org.reactivestreams.Publisher<T>> iterable)Multi<T>byMergingWith(org.reactivestreams.Publisher<T>... publishers)Multi<T>bySkippingFirstItems(long number)Multi<T>bySkippingItemsFor(java.time.Duration duration)Multi<T>bySkippingItemsWhile(java.util.function.Predicate<? super T> predicate)Multi<T>bySkippingLastItems(int number)Multi<T>byTakingFirstItems(long number)Multi<T>byTakingItemsFor(java.time.Duration duration)Multi<T>byTakingItemsWhile(java.util.function.Predicate<? super T> predicate)Multi<T>byTakingLastItems(int number)Multi<T>byTestingItemsWith(java.util.function.Function<? super T,Uni<java.lang.Boolean>> predicate)Multi<T>toHotStream()Deprecated.UseMulti.toHotStream()instead
-
-
-
Method Detail
-
bySkippingItemsWhile
public Multi<T> bySkippingItemsWhile(java.util.function.Predicate<? super T> predicate)
-
byTakingItemsWhile
public Multi<T> byTakingItemsWhile(java.util.function.Predicate<? super T> predicate)
-
byMergingWith
@SafeVarargs public final Multi<T> byMergingWith(org.reactivestreams.Publisher<T>... publishers)
-
byMergingWith
public Multi<T> byMergingWith(java.lang.Iterable<org.reactivestreams.Publisher<T>> iterable)
-
byFilteringItemsWith
public Multi<T> byFilteringItemsWith(java.util.function.Predicate<? super T> predicate)
- Parameters:
predicate- the predicate, must not benull- Returns:
- the produced
Multi
-
byTestingItemsWith
public Multi<T> byTestingItemsWith(java.util.function.Function<? super T,Uni<java.lang.Boolean>> predicate)
Produces aMulticontaining the items from thisMultipassing thepredicateasynchronous test. UnlikebyFilteringItemsWith(Predicate), the test is asynchronous. Note that this method preserves ordering of the items, even if the test is asynchronous.- Parameters:
predicate- the predicate, must not benull, must not producenull- Returns:
- the produced
Multi
-
toHotStream
@Deprecated public Multi<T> toHotStream()
Deprecated.UseMulti.toHotStream()insteadProduces a newMultitransforming 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
BackPressureFailurefailure.- Returns:
- the new multi.
-
-