public class UniAndGroup<T1> extends Object
unis into a new Uni that will be fulfilled when all
unis have emitted an item event and then combines the different outcomes into a
Tuple, or using a combinator function.
The produced Uni fires a failure event if one of the Unis fires a failure. This
causes the other unis to be cancelled, expect if collectFailures() is invoked, which delay the
failure event until all Unis have completed or failed.
| Constructor and Description |
|---|
UniAndGroup(Uni<T1> upstream) |
| Modifier and Type | Method and Description |
|---|---|
<T2> UniAndGroup2<T1,T2> |
uni(Uni<? extends T2> other)
Combines the current
Uni with the given one. |
UniAndGroupIterable<T1> |
unis(Iterable<? extends Uni<?>> unis)
Combines the current
Uni with the given ones. |
UniAndGroupIterable<T1> |
unis(Uni<?>... unis)
Combines the current
Uni with the given ones. |
<T2,T3> UniAndGroup3<T1,T2,T3> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3)
Combines the current
Uni with the given ones. |
<T2,T3,T4> UniAndGroup4<T1,T2,T3,T4> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3,
Uni<? extends T4> u4)
Combines the current
Uni with the given ones. |
<T2,T3,T4,T5> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3,
Uni<? extends T4> u4,
Uni<? extends T5> u5)
Combines the current
Uni with the given ones. |
<T2,T3,T4,T5,T6> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3,
Uni<? extends T4> u4,
Uni<? extends T5> u5,
Uni<? extends T6> u6)
Combines the current
Uni with the given ones. |
<T2,T3,T4,T5,T6,T7> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3,
Uni<? extends T4> u4,
Uni<? extends T5> u5,
Uni<? extends T6> u6,
Uni<? extends T7> u7)
Combines the current
Uni with the given ones. |
<T2,T3,T4,T5,T6,T7,T8> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3,
Uni<? extends T4> u4,
Uni<? extends T5> u5,
Uni<? extends T6> u6,
Uni<? extends T7> u7,
Uni<? extends T8> u8)
Combines the current
Uni with the given ones. |
<T2,T3,T4,T5,T6,T7,T8,T9> |
unis(Uni<? extends T2> u2,
Uni<? extends T3> u3,
Uni<? extends T4> u4,
Uni<? extends T5> u5,
Uni<? extends T6> u6,
Uni<? extends T7> u7,
Uni<? extends T8> u8,
Uni<? extends T9> u9)
Combines the current
Uni with the given ones. |
public <T2> UniAndGroup2<T1,T2> uni(Uni<? extends T2> other)
Uni with the given one.
Once both Uni have completed successfully, the item can be retrieved as a
Tuple2 or computed using a BiFunction.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup2.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniother - the other uni, must not be nullUniAndGroup2 to configure the combinationpublic <T2,T3> UniAndGroup3<T1,T2,T3> unis(Uni<? extends T2> u2, Uni<? extends T3> u3)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple3 or computed
using a Functions.Function3.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup3.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullUniAndGroup3 to configure the combinationpublic <T2,T3,T4> UniAndGroup4<T1,T2,T3,T4> unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple4 or computed
using a Functions.Function4.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup4.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniT4 - the type of the item for the fourth uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullu4 - the fourth uni to be combined, must not be nullUniAndGroup4 to configure the combinationpublic <T2,T3,T4,T5> UniAndGroup5<T1,T2,T3,T4,T5> unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple5 or computed
using a Functions.Function5.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup5.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniT4 - the type of the item for the fourth uniT5 - the type of the item for the fifth uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullu4 - the fourth uni to be combined, must not be nullu5 - the fifth uni to be combined, must not be nullUniAndGroup5 to configure the combinationpublic <T2,T3,T4,T5,T6> UniAndGroup6<T1,T2,T3,T4,T5,T6> unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple6 or computed
using a Functions.Function5.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup6.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniT4 - the type of the item for the fourth uniT5 - the type of the item for the fifth uniT6 - the type of the item for the sixth uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullu4 - the fourth uni to be combined, must not be nullu5 - the fifth uni to be combined, must not be nullu6 - the sixth uni to be combined, must not be nullUniAndGroup6 to configure the combinationpublic <T2,T3,T4,T5,T6,T7> UniAndGroup7<T1,T2,T3,T4,T5,T6,T7> unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple7 or computed
using a Functions.Function7.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup7.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniT4 - the type of the item for the fourth uniT5 - the type of the item for the fifth uniT6 - the type of the item for the sixth uniT7 - the type of the item for the seventh uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullu4 - the fourth uni to be combined, must not be nullu5 - the fifth uni to be combined, must not be nullu6 - the sixth uni to be combined, must not be nullu7 - the seventh uni to be combined, must not be nullUniAndGroup7 to configure the combinationpublic <T2,T3,T4,T5,T6,T7,T8> UniAndGroup8<T1,T2,T3,T4,T5,T6,T7,T8> unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7, Uni<? extends T8> u8)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple8 or computed
using a Functions.Function8.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup8.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniT4 - the type of the item for the fourth uniT5 - the type of the item for the fifth uniT6 - the type of the item for the sixth uniT7 - the type of the item for the seventh uniT8 - the type of the item for the eighth uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullu4 - the fourth uni to be combined, must not be nullu5 - the fifth uni to be combined, must not be nullu6 - the sixth uni to be combined, must not be nullu7 - the seventh uni to be combined, must not be nullu8 - the eighth uni to be combined, must not be nullUniAndGroup8 to configure the combinationpublic <T2,T3,T4,T5,T6,T7,T8,T9> UniAndGroup9<T1,T2,T3,T4,T5,T6,T7,T8,T9> unis(Uni<? extends T2> u2, Uni<? extends T3> u3, Uni<? extends T4> u4, Uni<? extends T5> u5, Uni<? extends T6> u6, Uni<? extends T7> u7, Uni<? extends T8> u8, Uni<? extends T9> u9)
Uni with the given ones.
Once all Uni have completed successfully, the item can be retrieved as a Tuple9 or computed
using a Functions.Function9.
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroup9.collectFailures() is invoked
which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
T2 - the type of the item for the second uniT3 - the type of the item for the third uniT4 - the type of the item for the fourth uniT5 - the type of the item for the fifth uniT6 - the type of the item for the sixth uniT7 - the type of the item for the seventh uniT8 - the type of the item for the eighth uniT9 - the type of the item for the ninth uniu2 - the second uni to be combined, must not be nullu3 - the third uni to be combined, must not be nullu4 - the fourth uni to be combined, must not be nullu5 - the fifth uni to be combined, must not be nullu6 - the sixth uni to be combined, must not be nullu7 - the seventh uni to be combined, must not be nullu8 - the eighth uni to be combined, must not be nullu9 - the ninth uni to be combined, must not be nullUniAndGroup9 to configure the combinationpublic UniAndGroupIterable<T1> unis(Uni<?>... unis)
Uni with the given ones.
Once all Uni have completed successfully, the item is computed using a combinator function
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroupIterable.collectFailures() is
invoked which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
unis - the list of unis, must not be null, must not contain null, must not be emptyUniAndGroupIterable to configure the combinationpublic UniAndGroupIterable<T1> unis(Iterable<? extends Uni<?>> unis)
Uni with the given ones.
Once all Uni have completed successfully, the item is computed using a combinator function
The produced Uni fires a failure event if one of the Unis fires a failure. This
will cause the other Uni to be cancelled, expect if UniAndGroupIterable.collectFailures() is
invoked which delay the failure event until all Unis have fires an item or failure event. If several
unis fire a failure, the propagated failure is a CompositeException wrapping all the
collected failures.
unis - the list of unis, must not be null, must not contain null, must not be emptyUniAndGroupIterable to configure the combinationCopyright © 2019–2020 SmallRye. All rights reserved.