
public class WaarpSucceededFuture extends WaarpCompletedFuture
| Constructor and Description |
|---|
WaarpSucceededFuture() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of the failed operation if the operation has failed.
|
boolean |
isSuccess()
Returns
true if and only if the operation was completed
successfully. |
WaarpFuture |
rethrowIfFailed()
Rethrows the exception that caused this future fail if this future is
complete and failed.
|
awaitOrInterruptible, awaitOrInterruptible, awaitOrInterruptible, cancel, isCancelled, isDone, reset, setFailure, setSuccessisFailedpublic Throwable getCause()
WaarpFuturegetCause in class WaarpFuturenull if succeeded or this
future
is not completed yet.public boolean isSuccess()
WaarpFuturetrue if and only if the operation was completed
successfully.isSuccess in class WaarpFuturepublic WaarpFuture rethrowIfFailed() throws Exception
WaarpFuturerethrowIfFailed in class WaarpFutureExceptionCopyright © 2009–2020 Waarp. All rights reserved.