Class MultiTransform<T>


  • public class MultiTransform<T>
    extends java.lang.Object
    • Constructor Detail

      • MultiTransform

        public MultiTransform​(Multi<T> upstream)
    • Method Detail

      • bySkippingFirstItems

        public Multi<T> bySkippingFirstItems​(long number)
      • bySkippingLastItems

        public Multi<T> bySkippingLastItems​(int number)
      • bySkippingItemsWhile

        public Multi<T> bySkippingItemsWhile​(java.util.function.Predicate<? super T> predicate)
      • bySkippingItemsFor

        public Multi<T> bySkippingItemsFor​(java.time.Duration duration)
      • byTakingFirstItems

        public Multi<T> byTakingFirstItems​(long number)
      • byTakingLastItems

        public Multi<T> byTakingLastItems​(int number)
      • byTakingItemsFor

        public Multi<T> byTakingItemsFor​(java.time.Duration duration)
      • byTakingItemsWhile

        public Multi<T> byTakingItemsWhile​(java.util.function.Predicate<? super T> predicate)
      • byDroppingDuplicates

        public Multi<T> byDroppingDuplicates()
      • byDroppingRepetitions

        public Multi<T> byDroppingRepetitions()
      • 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)
        Produces a Multi containing the items from this Multi passing the predicate test.
        Parameters:
        predicate - the predicate, must not be null
        Returns:
        the produced Multi
      • byTestingItemsWith

        public Multi<T> byTestingItemsWith​(java.util.function.Function<? super T,​Uni<java.lang.Boolean>> predicate)
        Produces a Multi containing the items from this Multi passing the predicate asynchronous test. Unlike byFilteringItemsWith(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 be null, must not produce null
        Returns:
        the produced Multi
      • toHotStream

        @Deprecated
        public Multi<T> toHotStream()
        Deprecated.
        Produces a new 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.

        Returns:
        the new multi.