Class MultiTransform<T>


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

      • MultiTransform

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

      • bySkippingFirstItems

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

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

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

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

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

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

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

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

        @CheckReturnValue
        public Multi<T> byDroppingDuplicates()
      • byDroppingRepetitions

        @CheckReturnValue
        public Multi<T> byDroppingRepetitions()
      • byMergingWith

        @SafeVarargs
        @CheckReturnValue
        public final Multi<T> byMergingWith​(org.reactivestreams.Publisher<T>... publishers)
      • byMergingWith

        @CheckReturnValue
        public Multi<T> byMergingWith​(java.lang.Iterable<org.reactivestreams.Publisher<T>> iterable)
      • byFilteringItemsWith

        @CheckReturnValue
        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

        @CheckReturnValue
        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
        @CheckReturnValue
        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.