public class ES4XFailedFuture<T> extends Object implements io.vertx.core.Future<T>, io.vertx.core.Promise<T>, Thenable
| Modifier and Type | Method and Description |
|---|---|
Throwable |
cause() |
void |
complete() |
void |
complete(T result) |
void |
fail(String failureMessage) |
void |
fail(Throwable cause) |
boolean |
failed() |
io.vertx.core.Future<T> |
future() |
void |
handle(io.vertx.core.AsyncResult<T> asyncResult) |
boolean |
isComplete() |
T |
result() |
io.vertx.core.Future<T> |
setHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler) |
boolean |
succeeded() |
void |
then(org.graalvm.polyglot.Value onFulfilled,
org.graalvm.polyglot.Value onRejected)
After some event "then" call one of the argument functions.
|
String |
toString() |
boolean |
tryComplete() |
boolean |
tryComplete(T result) |
boolean |
tryFail(String failureMessage) |
boolean |
tryFail(Throwable cause) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic boolean isComplete()
isComplete in interface io.vertx.core.Future<T>public io.vertx.core.Future<T> setHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
setHandler in interface io.vertx.core.Future<T>public void then(org.graalvm.polyglot.Value onFulfilled,
org.graalvm.polyglot.Value onRejected)
Thenablepublic void complete(T result)
public void complete()
public void fail(Throwable cause)
public void fail(String failureMessage)
public boolean tryComplete(T result)
public boolean tryComplete()
public boolean tryFail(Throwable cause)
public boolean tryFail(String failureMessage)
public T result()
public Throwable cause()
public boolean succeeded()
public boolean failed()
public void handle(io.vertx.core.AsyncResult<T> asyncResult)
public io.vertx.core.Future<T> future()
future in interface io.vertx.core.Promise<T>Copyright © 2019. All rights reserved.