限定符和类型 | 方法和说明 |
---|---|
ProgressiveFuture<V> |
addListener(GenericFutureListener<? extends Future<? super V>> listener)
Adds the specified listener to this future.
|
ProgressiveFuture<V> |
addListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Adds the specified listeners to this future.
|
ProgressiveFuture<V> |
await()
Waits for this future to be completed.
|
ProgressiveFuture<V> |
awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
ProgressiveFuture<V> |
removeListener(GenericFutureListener<? extends Future<? super V>> listener)
Removes the first occurrence of the specified listener from this future.
|
ProgressiveFuture<V> |
removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Removes the first occurrence for each of the listeners from this future.
|
ProgressiveFuture<V> |
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
ProgressiveFuture<V> |
syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
ProgressiveFuture<V> addListener(GenericFutureListener<? extends Future<? super V>> listener)
Future
ProgressiveFuture<V> addListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Future
ProgressiveFuture<V> removeListener(GenericFutureListener<? extends Future<? super V>> listener)
Future
ProgressiveFuture<V> removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Future
ProgressiveFuture<V> sync() throws java.lang.InterruptedException
Future
java.lang.InterruptedException
ProgressiveFuture<V> syncUninterruptibly()
Future
ProgressiveFuture<V> await() throws java.lang.InterruptedException
Future
java.lang.InterruptedException
- if the current thread was interruptedProgressiveFuture<V> awaitUninterruptibly()
Future
InterruptedException
and
discards it silently.