futures, it is useful when several futures
needs to be coordinated.
The handlers set for the coordinated futures are overridden by the handler of the composite future.
| Modifier and Type | Method and Description |
|---|---|
| public static <T1, T2> CompositeFuture | Returns: the composite futurefuture f1, Future<T2> future f2)Hides io.
Deprecated
instead use
Future#all(Future, Future)
Return a composite future, succeeded when all futures are succeeded, failed when any future is failed. |
| public static <T1, T2, T3> CompositeFuture | all(Future<T1> f1, Future<T2> f2, Future<T3> f3)
Hides io.
Deprecated
instead use
Future#all(Future, Future, Future)
Like |
| public static <T1, T2, T3, T4> CompositeFuture | all(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4)
Hides io.
Deprecated
instead use
Future#all(Future, Future, Future, Future)
Like |
| public static <T1, T2, T3, T4, T5> CompositeFuture | all(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5)
Hides io.
Deprecated
instead use
Future#all(Future, Future, Future, Future, Future)
Like |
| public static <T1, T2, T3, T4, T5, T6> CompositeFuture | all(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5, Future<T6> f6)
Hides io.
Deprecated
instead use
Future#all(Future, Future, Future, Future, Future, Future)
Like |
| public static CompositeFuture | all(List<Future<T>> futures)
Hides io.
Deprecated
instead use
Future#all(List)
Like |
| public static <T1, T2> CompositeFuture | Returns: the composite futurefuture f1, Future<T2> future f2)Hides io.
Deprecated
instead use
Future#any(Future, Future)
Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed. |
| public static <T1, T2, T3> CompositeFuture | any(Future<T1> f1, Future<T2> f2, Future<T3> f3)
Hides io.
Deprecated
instead use
Future#any(Future, Future, Future)
Like |
| public static <T1, T2, T3, T4> CompositeFuture | any(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4)
Hides io.
Deprecated
instead use
Future#any(Future, Future, Future, Future)
Like |
| public static <T1, T2, T3, T4, T5> CompositeFuture | any(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5)
Hides io.
Deprecated
instead use
Future#any(Future, Future, Future, Future, Future)
Like |
| public static <T1, T2, T3, T4, T5, T6> CompositeFuture | any(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5, Future<T6> f6)
Hides io.
Deprecated
instead use
Future#any(Future, Future, Future, Future, Future, Future)
Like |
| public static CompositeFuture | any(List<Future<T>> futures)
Hides io.
Deprecated
instead use
Future#any(List)
Like |
| public Throwable | |
| public default List | Returns: a list of all the eventual failure causes. If no future failed, returns a list of null values.
|
| public boolean | |
| public boolean | |
| public static <T1, T2> CompositeFuture | Returns: the composite futurefuture f1, Future<T2> future f2)Hides io.
Deprecated
instead use
Future#join(Future, Future)
Return a composite future, succeeded when all futures are succeeded, failed when any future is failed. |
| public static <T1, T2, T3> CompositeFuture | join(Future<T1> f1, Future<T2> f2, Future<T3> f3)
Hides io.
Deprecated
instead use
Future#join(Future, Future, Future)
Like |
| public static <T1, T2, T3, T4> CompositeFuture | join(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4)
Hides io.
Deprecated
instead use
Future#join(Future, Future, Future, Future)
Like |
| public static <T1, T2, T3, T4, T5> CompositeFuture | join(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5)
Hides io.
Deprecated
instead use
Future#join(Future, Future, Future, Future, Future)
Like |
| public static <T1, T2, T3, T4, T5, T6> CompositeFuture | join(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5, Future<T6> f6)
Hides io.
Deprecated
instead use
Future#join(Future, Future, Future, Future, Future, Future)
Like |
| public static CompositeFuture | join(List<Future<T>> futures)
Hides io.
Deprecated
instead use
Future#join(List)
Like |
| public default <T> List | Returns: a list of the current completed values. If one future is not yet resolved or is failed, null
will be used
|
| public CompositeFuture | onComplete(Handler<AsyncResult<CompositeFuture>>
the handler that will be called with the result handler)Redeclares io. Add a handler to be notified of the result. |
| public default CompositeFuture | onFailure(Handler<Throwable>
the handler that will be called with the failed result handler)Overrides default io. Add a handler to be notified of the failed result. |
| public default CompositeFuture | onSuccess(Handler<CompositeFuture>
the handler that will be called with the succeeded result handler)Overrides default io. Add a handler to be notified of the succeeded result. |
| public <T> T | |
| public int | |
| public boolean |
| all | back to summary |
|---|---|
| public static <T1, T2> CompositeFuture all(Future<T1> f1, Future<T2> f2) Hides io. Deprecated instead use Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.
The returned future fails as soon as one of
| |
| all | back to summary |
|---|---|
| public static <T1, T2, T3> CompositeFuture all(Future<T1> f1, Future<T2> f2, Future<T3> f3) Hides io. Deprecated instead use Like
| |
| all | back to summary |
|---|---|
| public static <T1, T2, T3, T4> CompositeFuture all(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4) Hides io. Deprecated instead use Like
| |
| all | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5> CompositeFuture all(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5) Hides io. Deprecated instead use Like
| |
| all | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6> CompositeFuture all(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5, Future<T6> f6) Hides io. Deprecated instead use Like
| |
| all | back to summary |
|---|---|
| public static CompositeFuture all(List<Future<T>> futures) Hides io. Deprecated instead use Like When the list is empty, the returned future will be already completed.
| |
| any | back to summary |
|---|---|
| public static <T1, T2> CompositeFuture any(Future<T1> f1, Future<T2> f2) Hides io. Deprecated instead use Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed.
The returned future succeeds as soon as one of
| |
| any | back to summary |
|---|---|
| public static <T1, T2, T3> CompositeFuture any(Future<T1> f1, Future<T2> f2, Future<T3> f3) Hides io. Deprecated instead use Like
| |
| any | back to summary |
|---|---|
| public static <T1, T2, T3, T4> CompositeFuture any(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4) Hides io. Deprecated instead use Like
| |
| any | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5> CompositeFuture any(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5) Hides io. Deprecated instead use Like
| |
| any | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6> CompositeFuture any(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5, Future<T6> f6) Hides io. Deprecated instead use Like
| |
| any | back to summary |
|---|---|
| public static CompositeFuture any(List<Future<T>> futures) Hides io. Deprecated instead use Like When the list is empty, the returned future will be already completed.
| |
| cause | back to summary |
|---|---|
| public Throwable cause(int index) Returns a cause of a wrapped future
| |
| causes | back to summary |
|---|---|
| public default List | |
| failed | back to summary |
|---|---|
| public boolean failed(int index) Returns true if a wrapped future is failed
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete(int index) Returns true if a wrapped future is completed
| |
| join | back to summary |
|---|---|
| public static <T1, T2> CompositeFuture join(Future<T1> f1, Future<T2> f2) Hides io. Deprecated instead use Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.
It always wait until all its futures are completed and will not fail as soon as one of
| |
| join | back to summary |
|---|---|
| public static <T1, T2, T3> CompositeFuture join(Future<T1> f1, Future<T2> f2, Future<T3> f3) Hides io. Deprecated instead use Like
| |
| join | back to summary |
|---|---|
| public static <T1, T2, T3, T4> CompositeFuture join(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4) Hides io. Deprecated instead use Like
| |
| join | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5> CompositeFuture join(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5) Hides io. Deprecated instead use Like
| |
| join | back to summary |
|---|---|
| public static <T1, T2, T3, T4, T5, T6> CompositeFuture join(Future<T1> f1, Future<T2> f2, Future<T3> f3, Future<T4> f4, Future<T5> f5, Future<T6> f6) Hides io. Deprecated instead use Like
| |
| join | back to summary |
|---|---|
| public static CompositeFuture join(List<Future<T>> futures) Hides io. Deprecated instead use Like When the list is empty, the returned future will be already completed.
| |
| list | back to summary |
|---|---|
public default <T> List
| |
| onComplete | back to summary |
|---|---|
| public CompositeFuture onComplete(Handler<AsyncResult<CompositeFuture>> handler) Redeclares io. Doc from io. Add a handler to be notified of the result. Warning this is a terminal operation.
If several
| |
| onFailure | back to summary |
|---|---|
| public default CompositeFuture onFailure(Handler<Throwable> handler) Overrides default io. Doc from io. Add a handler to be notified of the failed result. Warning this is a terminal operation.
If several
| |
| onSuccess | back to summary |
|---|---|
| public default CompositeFuture onSuccess(Handler<CompositeFuture> handler) Overrides default io. Doc from io. Add a handler to be notified of the succeeded result. Warning this is a terminal operation.
If several
| |
| resultAt | back to summary |
|---|---|
| public <T> T resultAt(int index) Returns the result of a wrapped future
| |
| size | back to summary |
|---|---|
public int size()
| |
| succeeded | back to summary |
|---|---|
| public boolean succeeded(int index) Returns true if a wrapped future is succeeded
| |