public interface AsyncResult<T>
Many operations in Vert.x APIs provide results back by passing an instance of this in a Handler
.
The result can either have failed or succeeded.
If it failed then the cause of the failure is available with cause()
.
If it succeeded then the actual result is available with result()
Modifier and Type | Method and Description |
---|---|
Throwable |
cause()
A Throwable describing failure.
|
boolean |
failed()
Did it fail?
|
T |
result()
The result of the operation.
|
boolean |
succeeded()
Did it succeed?
|
T result()
Throwable cause()
boolean succeeded()
boolean failed()
Copyright © 2016. All rights reserved.