| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.common.future.GgFuture
goldengate.common.future.GgCompletedFuture
public abstract class GgCompletedFuture

Future completed
| Constructor Summary | |
|---|---|
protected  | 
GgCompletedFuture()
 | 
| Method Summary | |
|---|---|
 GgFuture | 
await()
Waits for this future to be completed.  | 
 boolean | 
await(long timeoutMillis)
Waits for this future to be completed within the specified time limit.  | 
 boolean | 
await(long timeout,
      TimeUnit unit)
Waits for this future to be completed within the specified time limit.  | 
 GgFuture | 
awaitUninterruptibly()
Waits for this future to be completed without interruption.  | 
 boolean | 
awaitUninterruptibly(long timeoutMillis)
Waits for this future to be completed within the specified time limit without interruption.  | 
 boolean | 
awaitUninterruptibly(long timeout,
                     TimeUnit unit)
Waits for this future to be completed within the specified time limit without interruption.  | 
 boolean | 
cancel()
Cancels the operation associated with this future and notifies all listeners if canceled successfully.  | 
 boolean | 
isCancelled()
Returns true if and only if this future was canceled by a
 GgFuture.cancel() method. | 
 boolean | 
isDone()
Returns true if and only if this future is complete, regardless
 of whether the operation was successful, failed, or canceled. | 
 boolean | 
setFailure(Throwable cause)
Marks this future as a failure and notifies all listeners.  | 
 boolean | 
setSuccess()
Marks this future as a success and notifies all listeners.  | 
| Methods inherited from class goldengate.common.future.GgFuture | 
|---|
getCause, isFailed, isSuccess, rethrowIfFailed | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected GgCompletedFuture()
| Method Detail | 
|---|
public GgFuture await()
               throws InterruptedException
GgFuture
await in class GgFutureInterruptedException - if the current thread was interrupted
public boolean await(long timeout,
                     TimeUnit unit)
              throws InterruptedException
GgFuture
await in class GgFuturetrue if and only if the future was completed within the
         specified time limit
InterruptedException - if the current thread was interrupted
public boolean await(long timeoutMillis)
              throws InterruptedException
GgFuture
await in class GgFuturetrue if and only if the future was completed within the
         specified time limit
InterruptedException - if the current thread was interruptedpublic GgFuture awaitUninterruptibly()
GgFutureInterruptedException and discards it silently.
awaitUninterruptibly in class GgFuture
public boolean awaitUninterruptibly(long timeout,
                                    TimeUnit unit)
GgFutureInterruptedException
 and discards it silently.
awaitUninterruptibly in class GgFuturetrue if and only if the future was completed within the
         specified time limitpublic boolean awaitUninterruptibly(long timeoutMillis)
GgFutureInterruptedException
 and discards it silently.
awaitUninterruptibly in class GgFuturetrue if and only if the future was completed within the
         specified time limitpublic boolean isDone()
GgFuturetrue if and only if this future is complete, regardless
 of whether the operation was successful, failed, or canceled.
isDone in class GgFuturepublic boolean setFailure(Throwable cause)
GgFuture
setFailure in class GgFuturetrue if and only if successfully marked this future as a
         failure. Otherwise false because this future is already
         marked as either a success or a failure.public boolean setSuccess()
GgFuture
setSuccess in class GgFuturetrue if and only if successfully marked this future as a
         success. Otherwise false because this future is already
         marked as either a success or a failure.public boolean cancel()
GgFuture
cancel in class GgFuturetrue if and only if the operation has been canceled.
         false if the operation can't be canceled or is already
         completed.public boolean isCancelled()
GgFuturetrue if and only if this future was canceled by a
 GgFuture.cancel() method.
isCancelled in class GgFuture
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||