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, setSuccess
isFailed
public Throwable getCause()
WaarpFuture
getCause
in class WaarpFuture
null
if succeeded or this
future
is not completed yet.public boolean isSuccess()
WaarpFuture
true
if and only if the operation was completed
successfully.isSuccess
in class WaarpFuture
public WaarpFuture rethrowIfFailed() throws Exception
WaarpFuture
rethrowIfFailed
in class WaarpFuture
Exception
Copyright © 2009–2020 Waarp. All rights reserved.