
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.
|
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancelled, isDone, setFailure, setSuccessisFailed, resetpublic 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–2019 Waarp. All rights reserved.