goldengate.common.future
Class GgSucceededFuture
java.lang.Object
goldengate.common.future.GgFuture
goldengate.common.future.GgCompletedFuture
goldengate.common.future.GgSucceededFuture
public class GgSucceededFuture
- extends GgCompletedFuture
Future in success
- Author:
- Frederic Bregier
|
Method Summary |
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. |
GgFuture |
rethrowIfFailed()
Rethrows the exception that caused this future fail if this future is
complete and failed. |
| Methods inherited from class goldengate.common.future.GgCompletedFuture |
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancelled, isDone, setFailure, setSuccess |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GgSucceededFuture
public GgSucceededFuture()
getCause
public Throwable getCause()
- Description copied from class:
GgFuture
- Returns the cause of the failed operation if the operation has failed.
- Overrides:
getCause in class GgFuture
- Returns:
- the cause of the failure.
null if succeeded or this
future is not completed yet.
isSuccess
public boolean isSuccess()
- Description copied from class:
GgFuture
- Returns
true if and only if the operation was completed
successfully.
- Overrides:
isSuccess in class GgFuture
- Returns:
- True if the future is successful
rethrowIfFailed
public GgFuture rethrowIfFailed()
throws Exception
- Description copied from class:
GgFuture
- Rethrows the exception that caused this future fail if this future is
complete and failed.
- Overrides:
rethrowIfFailed in class GgFuture
- Throws:
Exception
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.