Package io.netty.util.concurrent
Interface ProgressiveFuture<V>
- 
- All Superinterfaces:
- Future<V>,- java.util.concurrent.Future<V>
 - All Known Subinterfaces:
- ChannelProgressiveFuture,- ChannelProgressivePromise,- ProgressivePromise<V>
 - All Known Implementing Classes:
- DefaultChannelProgressivePromise,- DefaultProgressivePromise
 
 public interface ProgressiveFuture<V> extends Future<V> AFuturewhich is used to indicate the progress of an operation.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.- 
Methods inherited from interface io.netty.util.concurrent.Futureawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
 
- 
 
- 
- 
- 
Method Detail- 
addListenerProgressiveFuture<V> addListener(GenericFutureListener<? extends Future<? super V>> listener) Description copied from interface:FutureAdds 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.- Specified by:
- addListenerin interface- Future<V>
 
 - 
addListenersProgressiveFuture<V> addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) Description copied from interface:FutureAdds 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.- Specified by:
- addListenersin interface- Future<V>
 
 - 
removeListenerProgressiveFuture<V> removeListener(GenericFutureListener<? extends Future<? super V>> listener) Description copied from interface:FutureRemoves 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.- Specified by:
- removeListenerin interface- Future<V>
 
 - 
removeListenersProgressiveFuture<V> removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) Description copied from interface:FutureRemoves 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.- Specified by:
- removeListenersin interface- Future<V>
 
 - 
syncProgressiveFuture<V> sync() throws java.lang.InterruptedException Description copied from interface:FutureWaits for this future until it is done, and rethrows the cause of the failure if this future failed.
 - 
syncUninterruptiblyProgressiveFuture<V> syncUninterruptibly() Description copied from interface:FutureWaits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
- syncUninterruptiblyin interface- Future<V>
 
 - 
awaitProgressiveFuture<V> await() throws java.lang.InterruptedException Description copied from interface:FutureWaits for this future to be completed.
 - 
awaitUninterruptiblyProgressiveFuture<V> awaitUninterruptibly() Description copied from interface:FutureWaits for this future to be completed without interruption. This method catches anInterruptedExceptionand discards it silently.- Specified by:
- awaitUninterruptiblyin interface- Future<V>
 
 
- 
 
-