- Direct Known Subclasses:
UniAndGroup2,UniAndGroup3,UniAndGroup4,UniAndGroup5,UniAndGroup6,UniAndGroup7,UniAndGroup8,UniAndGroup9
-
Constructor Summary
ConstructorsConstructorDescriptionUniAndGroupIterable(Uni<? extends T1> source, Iterable<? extends Uni<?>> iterable) UniAndGroupIterable(Uni<? extends T1> source, Iterable<? extends Uni<?>> iterable, boolean collectFailures) UniAndGroupIterable(Iterable<? extends Uni<?>> iterable) -
Method Summary
Modifier and TypeMethodDescription<O,I> Uni <O> combinedWith(Class<I> superType, Function<List<I>, O> function) Deprecated, for removal: This API element is subject to removal in a future version.<O> Uni<O> combinedWith(Function<List<?>, O> function) Deprecated, for removal: This API element is subject to removal in a future version.use {with(Function)} insteadusingConcurrencyOf(int level) Limit the number of concurrent upstream subscriptions.<O,I> Uni <O> <O> Uni<O> <O,I> Uni <O> <O> Uni<O>
-
Constructor Details
-
UniAndGroupIterable
-
UniAndGroupIterable
-
UniAndGroupIterable
-
-
Method Details
-
collectFailures
-
usingConcurrencyOf
Limit the number of concurrent upstream subscriptions.When not specified all upstream
Uniare being subscribed when the combiningUniis subscribed.Setting a limit is useful when you have a large number of
Unito combine and their simultaneous subscriptions might overwhelm resources (e.g., database connections, etc).- Parameters:
level- the concurrency level, must be strictly positive- Returns:
- an object to configure the combination logic
-
combinedWith
@Deprecated(forRemoval=true) @CheckReturnValue public <O> Uni<O> combinedWith(Function<List<?>, O> function) Deprecated, for removal: This API element is subject to removal in a future version.use {with(Function)} insteadCombine the items emitted by theunis, and emit the result when allunishave successfully completed. In case of failure, the failure is propagated.- Type Parameters:
O- the combination value type- Parameters:
function- the combination function- Returns:
- the new
Uni
-
with
Combine the items emitted by theunis, and emit the result when allunishave successfully completed. In case of failure, the failure is propagated.- Type Parameters:
O- the combination value type- Parameters:
function- the combination function- Returns:
- the new
Uni
-
withUni
Combine the items emitted by theunisto a new Uni, and emit the result when allunis(including the one returned fromfunctionhave successfully completed. In case of failure, the failure is propagated.- Type Parameters:
O- the combination value type- Parameters:
function- the combination function- Returns:
- the new
Uni
-
combinedWith
@Deprecated(forRemoval=true) @CheckReturnValue public <O,I> Uni<O> combinedWith(Class<I> superType, Function<List<I>, O> function) Deprecated, for removal: This API element is subject to removal in a future version.usewith(Class, Function)insteadCombine the items emitted by theunis, and emit the result when allunishave successfully completed. In case of failure, the failure is propagated.This method is a convenience wrapper for
with(Function)but with the assumption that all items haveIas a super type, which saves you a cast in the combination function. If the cast fails then the returnedUnifails with aClassCastException.- Type Parameters:
O- the combination value typeI- the super type of all items- Parameters:
superType- the super type of all itemsfunction- the combination function- Returns:
- the new
Uni
-
with
Combine the items emitted by theunis, and emit the result when allunishave successfully completed. In case of failure, the failure is propagated.This method is a convenience wrapper for
with(Function)but with the assumption that all items haveIas a super type, which saves you a cast in the combination function. If the cast fails then the returnedUnifails with aClassCastException.- Type Parameters:
O- the combination value typeI- the super type of all items- Parameters:
superType- the super type of all itemsfunction- the combination function- Returns:
- the new
Uni
-
withUni
@CheckReturnValue public <O,I> Uni<O> withUni(Class<I> superType, Function<List<I>, Uni<O>> function) Combine the items emitted by theunis, and emit the result when allunishave successfully completed. In case of failure, the failure is propagated.This method is a convenience wrapper for
withUni(Function)but with the assumption that all items haveIas a super type, which saves you a cast in the combination function. If the cast fails then the returnedUnifails with aClassCastException.- Type Parameters:
O- the combination value typeI- the super type of all items- Parameters:
superType- the super type of all itemsfunction- the combination function- Returns:
- the new
Uni
-
discardItems
Discards the items emitted by the combinedunis, and just emitsnullwhen all theunishave successfully completed. In case of failure, the failure is propagated.- Returns:
- the
Uni Uni<Void>emittingnullwhen all theunishave completed, or propagating the failure.
-
with(Class, Function)instead