Class MultiOnRequest<T>

java.lang.Object
io.smallrye.mutiny.groups.MultiOnRequest<T>

public class MultiOnRequest<T> extends Object
  • Constructor Details

    • MultiOnRequest

      public MultiOnRequest(Multi<T> upstream)
  • Method Details

    • invoke

      @CheckReturnValue public Multi<T> invoke(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(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(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(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