| Modifier and Type | Method and Description |
|---|---|
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public default Future | Returns: a future completed after thehandler has been invokedinvoked upon completion of this future handler)Invokes the given |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static <T> T | |
| public Throwable | Returns: the cause or null if the operation succeeded.Redeclares io. A Throwable describing failure. |
| public default <U> Future | |
| public <U> Future | |
| public <U> Future | Returns: the composed futurethe function returning the future. function)
Deprecated
instead use
eventually(Supplier), this method will be removed in Vert.x 5
Compose this future with a |
| public default <U> Future | Returns: the composed futurethe function returning the future. supplier)Compose this future with a |
| public Future | Returns: a future succeeded with the result or failed when the expectation returns falsethe expectation expectation)Guard the control flow of this future with an expectation. |
| public boolean | Returns: true if it failed or false otherwiseRedeclares io. Did it fail? |
| public static < the result type T> Future | Returns: the futurethe failure cause as a Throwable t)Create a failed future with the specified failure cause. |
| public static < the result type T> Future | Returns: the futurethe failure message failureMessage)Create a failed future with the specified failure message. |
| public default <U> Future | |
| public static < the result type T> Future | Returns: a Vert.x future that resolves whencompletionStage resolvesa completion stage completionStage)Bridges a |
| public static < the result type T> Future | Returns: a Vert.x future that resolves whencompletionStage resolvesa completion stage completionStage, Context a Vert.x context to dispatch to context)Bridges a |
| public static < the result type T> Future | |
| public boolean | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public static CompositeFuture | |
| public <U> Future | Returns: the mapped futurethe mapper function mapper)Redeclares as abstract: io. Apply a |
| public <V> Future | Returns: the mapped futurethe value that eventually completes the mapped future value)Redeclares as abstract: io. Map the result of a future to a specific |
| public default <V> Future | Returns: the mapped futureOverrides default io. Map the result of a future to |
| public Future | Returns: a reference to this, so it can be used fluentlythe handler that will be called with the result handler)Add a handler to be notified of the result. |
| public default Future | Returns: a reference to this, so it can be used fluentlythe handler that will be called with the succeeded result successHandler, Handler<Throwable> the handler that will be called with the failed result failureHandler)Add handlers to be notified on succeeded result and failed result. |
| public default Future | |
| public default Future | |
| public Future | Returns: the mapped futurethe mapper function mapper)Redeclares as abstract: io. Apply a |
| public Future | Returns: the mapped futurethe value that eventually completes the mapped future value)Redeclares as abstract: io. Map the failure of a future to a specific |
| public default Future | Returns: the mapped futureOverrides default io. Map the failure of a future to |
| public default Future | |
| public T | Returns: the result or null if the operation failed.Redeclares io. The result of the operation. |
| public boolean | Returns: true if it succeded or false otherwiseRedeclares io. Did it succeed? |
| public static < the result type T> Future | |
| public static < the result type T> Future | Returns: the futurethe result result)Created a succeeded future with the specified result. |
| public Future | |
| public default CompletionStage | Returns: aCompletionStage that completes when this future resolvesBridges this Vert.x future to a |
| public <U> Future | Returns: the transformed futurethe function mapping the future mapper)Transform this future with a |
| all | back to summary |
|---|---|
| public static CompositeFuture all(Future<?> f1, Future<?> f2) 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 CompositeFuture all(Future<?> f1, Future<?> f2, Future<?> f3) Like | |
| all | back to summary |
|---|---|
| public static CompositeFuture all(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4) Like | |
| all | back to summary |
|---|---|
| public static CompositeFuture all(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4, Future<?> f5) Like | |
| all | back to summary |
|---|---|
| public static CompositeFuture all(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4, Future<?> f5, Future<?> f6) Like | |
| all | back to summary |
|---|---|
| public static CompositeFuture all(List<? extends Future<?>> futures) Like When the list is empty, the returned future will be already completed. | |
| andThen | back to summary |
|---|---|
| public default Future Invokes the given
If the
| |
| any | back to summary |
|---|---|
| public static CompositeFuture any(Future<?> f1, Future<?> f2) 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 CompositeFuture any(Future<?> f1, Future<?> f2, Future<?> f3) Like | |
| any | back to summary |
|---|---|
| public static CompositeFuture any(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4) Like | |
| any | back to summary |
|---|---|
| public static CompositeFuture any(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4, Future<?> f5) Like | |
| any | back to summary |
|---|---|
| public static CompositeFuture any(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4, Future<?> f5, Future<?> f6) Like | |
| any | back to summary |
|---|---|
| public static CompositeFuture any(List<? extends Future<?>> futures) Like When the list is empty, the returned future will be already completed. | |
| await | back to summary |
|---|---|
| public static <T> T await(Future<T> future) Park the current thread until the
| |
| cause | back to summary |
|---|---|
| public Throwable cause() Redeclares io. A Throwable describing failure. This will be null if the operation succeeded. | |
| compose | back to summary |
|---|---|
| public default <U> Future Compose this future with a
When this future (the one on which
If the
When this future fails, the failure will be propagated to the returned future and the | |
| compose | back to summary |
|---|---|
| public <U> Future Compose this future with a
When this future (the one on which
When this future (the one on which If any mapper function throws an exception, the returned future will be failed with this exception.
| |
| eventually | back to summary |
|---|---|
| public <U> Future Deprecated instead use Compose this future with a When this future (the one on which The outcome of the future returned by the
| |
| eventually | back to summary |
|---|---|
| public default <U> Future Compose this future with a When this future (the one on which The outcome of the future returned by the | |
| expecting | back to summary |
|---|---|
| public Future Guard the control flow of this future with an expectation.
When the future is completed with a success, the Expectations are usually lambda expressions: return future.expecting(response -> response.statusCode() == 200); Expectation instances can also be used:
future = future.expecting(HttpResponseExpectation.SC_OK);
| |
| failed | back to summary |
|---|---|
| public boolean failed() Redeclares io. Did it fail?
| |
| failedFuture | back to summary |
|---|---|
| public static <T> Future Create a failed future with the specified failure cause. | |
| failedFuture | back to summary |
|---|---|
| public static <T> Future Create a failed future with the specified failure message. | |
| flatMap | back to summary |
|---|---|
| public default <U> Future Alias for | |
| fromCompletionStage | back to summary |
|---|---|
| public static <T> Future Bridges a
The Vert.x future handling methods will be called from the thread that completes
| |
| fromCompletionStage | back to summary |
|---|---|
| public static <T> Future Bridges a
The Vert.x future handling methods will be called on the provided
| |
| future | back to summary |
|---|---|
| public static <T> Future Create a future that hasn't completed yet and that is passed to the | |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Has the future completed? It's completed if it's either succeeded or failed.
| |
| join | back to summary |
|---|---|
| public static CompositeFuture join(Future<?> f1, Future<?> f2) 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 CompositeFuture join(Future<?> f1, Future<?> f2, Future<?> f3) Like | |
| join | back to summary |
|---|---|
| public static CompositeFuture join(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4) Like | |
| join | back to summary |
|---|---|
| public static CompositeFuture join(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4, Future<?> f5) Like | |
| join | back to summary |
|---|---|
| public static CompositeFuture join(Future<?> f1, Future<?> f2, Future<?> f3, Future<?> f4, Future<?> f5, Future<?> f6) Like | |
| join | back to summary |
|---|---|
| public static CompositeFuture join(List<? extends Future<?>> futures) Like When the list is empty, the returned future will be already completed. | |
| map | back to summary |
|---|---|
| public <U> Future Redeclares as abstract: io. Apply a
When this future succeeds, the
If the
When this future fails, the failure will be propagated to the returned future and the | |
| map | back to summary |
|---|---|
| public <V> Future Redeclares as abstract: io. Map the result of a future to a specific
When this future succeeds, this When this future fails, the failure will be propagated to the returned future.
| |
| mapEmpty | back to summary |
|---|---|
| public default <V> Future Overrides default io. Map the result of a future to
This is a conveniency for
When this future succeeds, When this future fails, the failure will be propagated to the returned future. | |
| onComplete | back to summary |
|---|---|
| public Future Add a handler to be notified of the result. Warning this is a terminal operation.
If several
| |
| onComplete | back to summary |
|---|---|
| public default Future Add handlers to be notified on succeeded result and failed result. Warning this is a terminal operation.
If several | |
| onFailure | back to summary |
|---|---|
| public default Future Add a handler to be notified of the failed result. Warning this is a terminal operation.
If several | |
| onSuccess | back to summary |
|---|---|
| public default Future Add a handler to be notified of the succeeded result. Warning this is a terminal operation.
If several | |
| otherwise | back to summary |
|---|---|
| public Future Redeclares as abstract: io. Apply a
When this future fails, the
If the
When this future succeeds, the result will be propagated to the returned future and the | |
| otherwise | back to summary |
|---|---|
| public Future Redeclares as abstract: io. Map the failure of a future to a specific
When this future fails, this When this future succeeds, the result will be propagated to the returned future.
| |
| otherwiseEmpty | back to summary |
|---|---|
| public default Future Overrides default io. Map the failure of a future to
This is a convenience for
When this future fails, the When this future succeeds, the result will be propagated to the returned future.
| |
| recover | back to summary |
|---|---|
| public default Future Handles a failure of this Future by returning the result of another Future. If the mapper fails, then the returned future will be failed with this failure. | |
| result | back to summary |
|---|---|
| public T result() Redeclares io. The result of the operation. This will be null if the operation failed.
| |
| succeeded | back to summary |
|---|---|
| public boolean succeeded() Redeclares io. Did it succeed?
| |
| succeededFuture | back to summary |
|---|---|
| public static <T> Future Create a succeeded future with a null result
| |
| succeededFuture | back to summary |
|---|---|
| public static <T> Future Created a succeeded future with the specified result.
| |
| timeout | back to summary |
|---|---|
| public Future Returns a future succeeded or failed with the outcome of this future when it happens before the timeout fires. When
the timeout fires before, the future is failed with a | |
| toCompletionStage | back to summary |
|---|---|
| public default CompletionStage Bridges this Vert.x future to a
The
| |
| transform | back to summary |
|---|---|
| public <U> Future Transform this future with a
When this future (the one on which If any mapper function throws an exception, the returned future will be failed with this exception.
| |