open class Future<T : Any>
Represents the result of an action that may, or may not, have occurred yet.
NOTE: This class has been automatically generated from the io.vertx.core.Future non RX-ified interface using Vert.x codegen.
Future(delegate: Future<Any>)Future(delegate: Future<Any>, typeArg_0: TypeArg<T>) |
static val __TYPE_ARG: TypeArg<Future<Any>> |
|
val __typeArg_0: TypeArg<T> |
open fun cause(): Throwable
A Throwable describing failure. This will be null if the operation succeeded. |
|
open fun complete(result: T): Unit
Set the result. Any handler will be called, if there is one, and the future will be marked as completed. open fun complete(): Unit
Set a null result. Any handler will be called, if there is one, and the future will be marked as completed. |
|
open fun completer(): Handler<AsyncResult<T>> |
|
open fun <U : Any> compose(handler: Handler<T>, next: Future<U>): Future<U>
Compose this future with a provided When this (the one on which If the When this future fails, the failure will be propagated to the open fun <U : Any> compose(mapper: Function<T, Future<U>>): Future<U>
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 |
|
open fun equals(other: Any?): Boolean |
|
open fun fail(cause: Throwable): Unit
Set the failure. Any handler will be called, if there is one, and the future will be marked as completed. open fun fail(failureMessage: String): Unit
Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed. |
|
open fun failed(): Boolean
Did it fail? |
|
open static fun <T : Any> failedFuture(t: Throwable): Future<T>
Create a failed future with the specified failure cause. open static fun <T : Any> failedFuture(failureMessage: String): Future<T>
Create a failed future with the specified failure message. |
|
open static fun <T : Any> future(handler: Handler<Future<T>>): Future<T>
Create a future that hasn't completed yet and that is passed to the open static fun <T : Any> future(): Future<T>
Create a future that hasn't completed yet |
|
open fun getDelegate(): Future<Any> |
|
open fun hashCode(): Int |
|
open fun isComplete(): Boolean
Has the future completed? It's completed if it's either succeeded or failed. |
|
open fun <U : Any> map(mapper: Function<T, U>): Future<U>
Apply a When this future succeeds, the If the When this future fails, the failure will be propagated to the returned future and the open fun <V : Any> map(value: V): Future<V>
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. |
|
open fun <V : Any> mapEmpty(): Future<V>
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. |
|
open static fun <T : Any> newInstance(arg: Future<Any>): Future<T>open static fun <T : Any> newInstance(arg: Future<Any>, __typeArg_T: TypeArg<T>): Future<T> |
|
open fun otherwise(mapper: Function<Throwable, T>): Future<T>
Apply a When this future fails, the If the When this future succeeds, the result will be propagated to the returned future and the open fun otherwise(value: T): Future<T>
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. |
|
open fun otherwiseEmpty(): Future<T>
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. |
|
open fun recover(mapper: Function<Throwable, Future<T>>): Future<T>
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. |
|
open fun result(): T
The result of the operation. This will be null if the operation failed. |
|
open fun rxSetHandler(): Single<T>
Set a handler for the result. If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed. |
|
open fun setHandler(handler: Handler<AsyncResult<T>>): Future<T>
Set a handler for the result. If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed. |
|
open fun succeeded(): Boolean
Did it succeed? |
|
open static fun <T : Any> succeededFuture(): Future<T>
Create a succeeded future with a null result open static fun <T : Any> succeededFuture(result: T): Future<T>
Created a succeeded future with the specified result. |
|
open fun toString(): String |
|
open fun tryComplete(result: T): Boolean
Set the failure. Any handler will be called, if there is one, and the future will be marked as completed. open fun tryComplete(): Boolean
Try to set the result. When it happens, any handler will be called, if there is one, and the future will be marked as completed. |
|
open fun tryFail(cause: Throwable): Booleanopen fun tryFail(failureMessage: String): Boolean
Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed. |
open class BaseBridgeEvent : Future<Boolean>
Represents an event that occurs on the event bus bridge. Please consult the documentation for a full explanation. NOTE: This class has been automatically generated from the io.vertx.ext.bridge.BaseBridgeEvent non RX-ified interface using Vert.x codegen. |
|
open class CompositeFuture : Future<CompositeFuture>
The composite future wraps a list of io.vertx.reactivex.core.Future, 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. NOTE: This class has been automatically generated from the io.vertx.core.CompositeFuture non RX-ified interface using Vert.x codegen. |