public class ES4XFailedFuture<T> extends java.lang.Object implements io.vertx.core.Future<T>, io.vertx.core.Promise<T>, Thenable
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
cause() |
void |
complete() |
void |
complete(T result) |
void |
fail(java.lang.String failureMessage) |
void |
fail(java.lang.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.
|
java.lang.String |
toString() |
boolean |
tryComplete() |
boolean |
tryComplete(T result) |
boolean |
tryFail(java.lang.String failureMessage) |
boolean |
tryFail(java.lang.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(java.lang.Throwable cause)
public void fail(java.lang.String failureMessage)
public boolean tryComplete(T result)
public boolean tryComplete()
public boolean tryFail(java.lang.Throwable cause)
public boolean tryFail(java.lang.String failureMessage)
public T result()
public java.lang.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>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.