Modifier and Type | Method and Description |
---|---|
public Future | addListener(GenericFutureListener<? extends Future<? super V>> listener)
Adds the specified listener to this future. |
public Future | addListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Adds the specified listeners to this future. |
public Future | |
public boolean | |
public boolean | Returns: true if and only if the future was completed within
the specified time limitWaits for this future to be completed within the specified time limit. |
public Future | |
public boolean | Returns: true if and only if the future was completed within
the specified time limitWaits for this future to be completed within the specified time limit without interruption. |
public boolean | Returns: true if and only if the future was completed within
the specified time limitWaits for this future to be completed within the specified time limit without interruption. |
public boolean | cancel(boolean
true if the thread
executing this task should be interrupted (if the thread is
known to the implementation); otherwise, in-progress tasks are
allowed to completeRedeclares java. |
public Throwable | Returns: the cause of the failure.null if succeeded or this future is not
completed yet.Returns the cause of the failed I/O operation if the I/O operation has failed. |
public V | |
public boolean | |
public boolean | |
public Future | removeListener(GenericFutureListener<? extends Future<? super V>> listener)
Removes the first occurrence of the specified listener from this future. |
public Future | removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Removes the first occurrence for each of the listeners from this future. |
public Future | sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future failed. |
public Future | syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future failed. |
addListener | back to summary |
---|---|
public Future Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately. |
addListeners | back to summary |
---|---|
public Future Adds the specified listeners to this future. The specified listeners are notified when this future is done. If this future is already completed, the specified listeners are notified immediately. |
await | back to summary |
---|---|
public Future Waits for this future to be completed.
|
await | back to summary |
---|---|
public boolean await(long timeout, TimeUnit unit) throws InterruptedException Waits for this future to be completed within the specified time limit.
|
await | back to summary |
---|---|
public boolean await(long timeoutMillis) throws InterruptedException Waits for this future to be completed within the specified time limit.
|
awaitUninterruptibly | back to summary |
---|---|
public Future Waits for this future to be completed without
interruption. This method catches an |
awaitUninterruptibly | back to summary |
---|---|
public boolean awaitUninterruptibly(long timeout, TimeUnit unit) Waits for this future to be completed within the
specified time limit without interruption. This method catches an
|
awaitUninterruptibly | back to summary |
---|---|
public boolean awaitUninterruptibly(long timeoutMillis) Waits for this future to be completed within the
specified time limit without interruption. This method catches an
|
cancel | back to summary |
---|---|
public boolean cancel(boolean mayInterruptIfRunning) Redeclares java. Doc from java. Attempts to cancel execution of this task. This method has no
effect if the task is already completed or cancelled, or could
not be cancelled for some other reason. Otherwise, if this
task has not started when The return value from this method does not necessarily
indicate whether the task is now cancelled; use
|
cause | back to summary |
---|---|
public Throwable cause() Returns the cause of the failed I/O operation if the I/O operation has failed.
|
getNow | back to summary |
---|---|
public V getNow() Return the result without blocking. If the future is not done yet this will return |
isCancellable | back to summary |
---|---|
public boolean isCancellable() returns |
isSuccess | back to summary |
---|---|
public boolean isSuccess() Returns |
removeListener | back to summary |
---|---|
public Future Removes the first occurrence of the specified listener from this future. The specified listener is no longer notified when this future is done. If the specified listener is not associated with this future, this method does nothing and returns silently. |
removeListeners | back to summary |
---|---|
public Future Removes the first occurrence for each of the listeners from this future. The specified listeners are no longer notified when this future is done. If the specified listeners are not associated with this future, this method does nothing and returns silently. |
sync | back to summary |
---|---|
public Future Waits for this future until it is done, and rethrows the cause of the failure if this future failed. |
syncUninterruptibly | back to summary |
---|---|
public Future Waits for this future until it is done, and rethrows the cause of the failure if this future failed. |