Class MultiOnRequest<T>


  • public class MultiOnRequest<T>
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Multi<T> call​(java.util.function.LongFunction<Uni<?>> mapper)
      Action when items are being requested.
      Multi<T> call​(java.util.function.Supplier<Uni<?>> supplier)
      Action when items are being requested.
      Multi<T> invoke​(java.lang.Runnable action)
      Action when items are being requested.
      Multi<T> invoke​(java.util.function.LongConsumer consumer)
      Action when items are being requested.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiOnRequest

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

      • invoke

        @CheckReturnValue
        public Multi<T> invoke​(java.util.function.LongConsumer consumer)
        Action when items are being requested. The request is propagated upstream when the action has completed. An error is forwarded downstream if the action throws an exception.
        Parameters:
        consumer - the action
        Returns:
        the new Multi
      • invoke

        @CheckReturnValue
        public Multi<T> invoke​(java.lang.Runnable action)
        Action when items are being requested. The request is propagated upstream when the action has completed. An error is forwarded downstream if the action throws an exception.
        Parameters:
        action - the action
        Returns:
        the new Multi
      • call

        @CheckReturnValue
        public Multi<T> call​(java.util.function.LongFunction<Uni<?>> mapper)
        Action when items are being requested. The request is propagated upstream when the Uni has completed. If the Uni fails then the error is forwarded downstream. Also the Uni will receive a tentative cancellation event if the subscription of this Multi is being cancelled.
        Parameters:
        mapper - the action, returns a non-null Uni
        Returns:
        the new Multi
      • call

        @CheckReturnValue
        public Multi<T> call​(java.util.function.Supplier<Uni<?>> supplier)
        Action when items are being requested. The request is propagated upstream when the Uni has completed. If the Uni fails then the error is forwarded downstream. Also the Uni will receive a tentative cancellation event if the subscription of this Multi is being cancelled.
        Parameters:
        supplier - the action, returns a non-null Uni
        Returns:
        the new Multi