Example usage for Java io.vertx.core Future fields, constructors, methods, implement or subclass
The text is from its open source code.
Throwable | cause() A Throwable describing failure. |
Future | compose(Function Compose this future with a mapper function. When this future (the one on which compose is called) succeeds, the mapper will be called with the completed value and this mapper returns another future object. |
Future | compose(Function Compose this future with a successMapper and failureMapper functions. When this future (the one on which compose is called) succeeds, the successMapper will be called with the completed value and this mapper returns another future object. |
boolean | failed() Did it fail? |
Future | failedFuture(Throwable t) Create a failed future with the specified failure cause. |
Future | failedFuture(String failureMessage) Create a failed future with the specified failure message. |
boolean | isComplete() Has the future completed? |
Future | map(Function Apply a mapper function on this future. When this future succeeds, the mapper will be called with the completed value and this mapper returns a value. |
Future | map(V value) Map the result of a future to a specific value . When this future succeeds, this value will complete the future returned by this method call. When this future fails, the failure will be propagated to the returned future. |
Future | otherwiseEmpty() Map the failure of a future to null . This is a convenience for future.otherwise((T) null) . When this future fails, the null value will complete the future returned by this method call. When this future succeeds, the result will be propagated to the returned future. |
T | result() The result of the operation. |
Future | setHandler(Handler Like #onComplete(Handler) . |
boolean | succeeded() Did it succeed? |
Future | succeededFuture(T result) Created a succeeded future with the specified result. |
Future | succeededFuture() Create a succeeded future with a null result |