java.lang.Object
io.smallrye.mutiny.groups.UniJoin.JoinAllStrategy<T>
- Type Parameters:
T- the type of theUnivalues
- All Implemented Interfaces:
UniJoin.JoinAllStrategyTerminal<T>
- Enclosing class:
UniJoin
public static class UniJoin.JoinAllStrategy<T>
extends Object
implements UniJoin.JoinAllStrategyTerminal<T>
Defines how to deal with failures while joining
Uni references with UniJoin.all(List).-
Method Summary
Modifier and TypeMethodDescriptionWait for allUnireferences to terminate, and collect all failures in aCompositeException.usingConcurrencyOf(int limit) Limit the number of concurrent upstream subscriptions.
-
Method Details
-
usingConcurrencyOf
Limit the number of concurrent upstream subscriptions.When not specified all upstream
Uniare being subscribed when the joiningUniis subscribed.Setting a limit is useful when you have a large number of
Unito join and their simultaneous subscriptions might overwhelm resources (e.g., database connections, etc).- Parameters:
limit- the concurrency limit, must be strictly positive- Returns:
- an object to conclude the join strategy
-
andCollectFailures
Wait for allUnireferences to terminate, and collect all failures in aCompositeException.- Specified by:
andCollectFailuresin interfaceUniJoin.JoinAllStrategyTerminal<T>- Returns:
- a new
Uni
-
andFailFast
Immediately forward the first failure from any of theUni, and cancel the remainingUnisubscriptions, ignoring eventual subsequent failures.- Specified by:
andFailFastin interfaceUniJoin.JoinAllStrategyTerminal<T>- Returns:
- a new
Uni
-