Package io.smallrye.mutiny.groups
Class MultiOnRequest<T>
- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiOnRequest<T>
-
public class MultiOnRequest<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MultiOnRequest(Multi<T> upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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.Multi<T>
invokeUni(java.util.function.LongFunction<Uni<?>> mapper)
Deprecated.
-
-
-
Method Detail
-
invoke
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
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
-
-