
public class WaarpFailedFuture extends WaarpCompletedFuture
| Constructor and Description |
|---|
WaarpFailedFuture(Throwable cause)
Creates a new instance.
|
| 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 WaarpFailedFuture(Throwable cause)
cause - the cause of failurepublic 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.