Interface ChannelProgressiveFuture
- All Superinterfaces:
ChannelFuture, Future<Void>, Future<Void>, ProgressiveFuture<Void>
- All Known Subinterfaces:
ChannelProgressivePromise
- All Known Implementing Classes:
DefaultChannelProgressivePromise
An special
ChannelFuture which is used to indicate the FileRegion transfer progress-
Method Summary
Modifier and TypeMethodDescriptionaddListener(GenericFutureListener<? extends Future<? super Void>> listener) Adds the specified listener to this future.addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) Adds the specified listeners to this future.await()Waits for this future to be completed.Waits for this future to be completed without interruption.removeListener(GenericFutureListener<? extends Future<? super Void>> listener) Removes the first occurrence of the specified listener from this future.removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) Removes the first occurrence for each of the listeners from this future.sync()Waits for this future until it is done, and rethrows the cause of the failure if this future failed.Waits for this future until it is done, and rethrows the cause of the failure if this future failed.Methods inherited from interface ChannelFuture
channel, isVoidMethods inherited from interface Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccessMethods inherited from interface Future
get, get, isCancelled, isDone
-
Method Details
-
addListener
ChannelProgressiveFuture addListener(GenericFutureListener<? extends Future<? super Void>> 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 interfaceChannelFuture- Specified by:
addListenerin interfaceFuture<Void>- Specified by:
addListenerin interfaceProgressiveFuture<Void>
-
addListeners
ChannelProgressiveFuture addListeners(GenericFutureListener<? extends Future<? super Void>>... 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 interfaceChannelFuture- Specified by:
addListenersin interfaceFuture<Void>- Specified by:
addListenersin interfaceProgressiveFuture<Void>
-
removeListener
ChannelProgressiveFuture removeListener(GenericFutureListener<? extends Future<? super Void>> 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 interfaceChannelFuture- Specified by:
removeListenerin interfaceFuture<Void>- Specified by:
removeListenerin interfaceProgressiveFuture<Void>
-
removeListeners
ChannelProgressiveFuture removeListeners(GenericFutureListener<? extends Future<? super Void>>... 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 interfaceChannelFuture- Specified by:
removeListenersin interfaceFuture<Void>- Specified by:
removeListenersin interfaceProgressiveFuture<Void>
-
sync
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:
syncin interfaceChannelFuture- Specified by:
syncin interfaceFuture<Void>- Specified by:
syncin interfaceProgressiveFuture<Void>- Throws:
InterruptedException
-
syncUninterruptibly
ChannelProgressiveFuture 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 interfaceChannelFuture- Specified by:
syncUninterruptiblyin interfaceFuture<Void>- Specified by:
syncUninterruptiblyin interfaceProgressiveFuture<Void>
-
await
Description copied from interface:FutureWaits for this future to be completed.- Specified by:
awaitin interfaceChannelFuture- Specified by:
awaitin interfaceFuture<Void>- Specified by:
awaitin interfaceProgressiveFuture<Void>- Throws:
InterruptedException- if the current thread was interrupted
-
awaitUninterruptibly
ChannelProgressiveFuture awaitUninterruptibly()Description copied from interface:FutureWaits for this future to be completed without interruption. This method catches anInterruptedExceptionand discards it silently.- Specified by:
awaitUninterruptiblyin interfaceChannelFuture- Specified by:
awaitUninterruptiblyin interfaceFuture<Void>- Specified by:
awaitUninterruptiblyin interfaceProgressiveFuture<Void>
-