public class Result<T>
extends java.lang.Object
implements io.vertx.core.AsyncResult<T>
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
cause() |
static <T> io.vertx.core.AsyncResult<T> |
fail(java.lang.Throwable cause) |
boolean |
failed() |
T |
result() |
boolean |
succeeded() |
static io.vertx.core.AsyncResult<java.lang.Void> |
success() |
static <T> io.vertx.core.AsyncResult<T> |
success(T r) |
public java.lang.Throwable cause()
cause
in interface io.vertx.core.AsyncResult<T>
public boolean succeeded()
succeeded
in interface io.vertx.core.AsyncResult<T>
public boolean failed()
failed
in interface io.vertx.core.AsyncResult<T>
public static <T> io.vertx.core.AsyncResult<T> success(T r)
public static io.vertx.core.AsyncResult<java.lang.Void> success()
public static <T> io.vertx.core.AsyncResult<T> fail(java.lang.Throwable cause)
Copyright © 2021. All Rights Reserved.