Package io.netty.channel
Interface ChannelProgressiveFuture
-
- All Superinterfaces:
ChannelFuture,Future<java.lang.Void>,java.util.concurrent.Future<java.lang.Void>,ProgressiveFuture<java.lang.Void>
- All Known Subinterfaces:
ChannelProgressivePromise
- All Known Implementing Classes:
DefaultChannelProgressivePromise
public interface ChannelProgressiveFuture extends ChannelFuture, ProgressiveFuture<java.lang.Void>
An specialChannelFuturewhich is used to indicate theFileRegiontransfer progress
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChannelProgressiveFutureaddListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)Adds the specified listener to this future.ChannelProgressiveFutureaddListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)Adds the specified listeners to this future.ChannelProgressiveFutureawait()Waits for this future to be completed.ChannelProgressiveFutureawaitUninterruptibly()Waits for this future to be completed without interruption.ChannelProgressiveFutureremoveListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)Removes the first occurrence of the specified listener from this future.ChannelProgressiveFutureremoveListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)Removes the first occurrence for each of the listeners from this future.ChannelProgressiveFuturesync()Waits for this future until it is done, and rethrows the cause of the failure if this future failed.ChannelProgressiveFuturesyncUninterruptibly()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.channel.ChannelFuture
channel, isVoid
-
Methods inherited from interface io.netty.util.concurrent.Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
-
-
-
-
Method Detail
-
addListener
ChannelProgressiveFuture addListener(GenericFutureListener<? extends Future<? super java.lang.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<java.lang.Void>- Specified by:
addListenerin interfaceProgressiveFuture<java.lang.Void>
-
addListeners
ChannelProgressiveFuture addListeners(GenericFutureListener<? extends Future<? super java.lang.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<java.lang.Void>- Specified by:
addListenersin interfaceProgressiveFuture<java.lang.Void>
-
removeListener
ChannelProgressiveFuture removeListener(GenericFutureListener<? extends Future<? super java.lang.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<java.lang.Void>- Specified by:
removeListenerin interfaceProgressiveFuture<java.lang.Void>
-
removeListeners
ChannelProgressiveFuture removeListeners(GenericFutureListener<? extends Future<? super java.lang.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<java.lang.Void>- Specified by:
removeListenersin interfaceProgressiveFuture<java.lang.Void>
-
sync
ChannelProgressiveFuture 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.- Specified by:
syncin interfaceChannelFuture- Specified by:
syncin interfaceFuture<java.lang.Void>- Specified by:
syncin interfaceProgressiveFuture<java.lang.Void>- Throws:
java.lang.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<java.lang.Void>- Specified by:
syncUninterruptiblyin interfaceProgressiveFuture<java.lang.Void>
-
await
ChannelProgressiveFuture await() throws java.lang.InterruptedException
Description copied from interface:FutureWaits for this future to be completed.- Specified by:
awaitin interfaceChannelFuture- Specified by:
awaitin interfaceFuture<java.lang.Void>- Specified by:
awaitin interfaceProgressiveFuture<java.lang.Void>- Throws:
java.lang.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<java.lang.Void>- Specified by:
awaitUninterruptiblyin interfaceProgressiveFuture<java.lang.Void>
-
-