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 specialChannelFuture
which is used to indicate theFileRegion
transfer progress
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChannelProgressiveFuture
addListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)
Adds the specified listener to this future.ChannelProgressiveFuture
addListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)
Adds the specified listeners to this future.ChannelProgressiveFuture
await()
Waits for this future to be completed.ChannelProgressiveFuture
awaitUninterruptibly()
Waits for this future to be completed without interruption.ChannelProgressiveFuture
removeListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)
Removes the first occurrence of the specified listener from this future.ChannelProgressiveFuture
removeListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)
Removes the first occurrence for each of the listeners from this future.ChannelProgressiveFuture
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.ChannelProgressiveFuture
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.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: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.- Specified by:
addListener
in interfaceChannelFuture
- Specified by:
addListener
in interfaceFuture<java.lang.Void>
- Specified by:
addListener
in interfaceProgressiveFuture<java.lang.Void>
-
addListeners
ChannelProgressiveFuture addListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)
Description copied from interface: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.- Specified by:
addListeners
in interfaceChannelFuture
- Specified by:
addListeners
in interfaceFuture<java.lang.Void>
- Specified by:
addListeners
in interfaceProgressiveFuture<java.lang.Void>
-
removeListener
ChannelProgressiveFuture removeListener(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)
Description copied from interface: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.- Specified by:
removeListener
in interfaceChannelFuture
- Specified by:
removeListener
in interfaceFuture<java.lang.Void>
- Specified by:
removeListener
in interfaceProgressiveFuture<java.lang.Void>
-
removeListeners
ChannelProgressiveFuture removeListeners(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)
Description copied from interface: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.- Specified by:
removeListeners
in interfaceChannelFuture
- Specified by:
removeListeners
in interfaceFuture<java.lang.Void>
- Specified by:
removeListeners
in interfaceProgressiveFuture<java.lang.Void>
-
sync
ChannelProgressiveFuture sync() throws java.lang.InterruptedException
Description copied from interface:Future
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
sync
in interfaceChannelFuture
- Specified by:
sync
in interfaceFuture<java.lang.Void>
- Specified by:
sync
in interfaceProgressiveFuture<java.lang.Void>
- Throws:
java.lang.InterruptedException
-
syncUninterruptibly
ChannelProgressiveFuture syncUninterruptibly()
Description copied from interface:Future
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
syncUninterruptibly
in interfaceChannelFuture
- Specified by:
syncUninterruptibly
in interfaceFuture<java.lang.Void>
- Specified by:
syncUninterruptibly
in interfaceProgressiveFuture<java.lang.Void>
-
await
ChannelProgressiveFuture await() throws java.lang.InterruptedException
Description copied from interface:Future
Waits for this future to be completed.- Specified by:
await
in interfaceChannelFuture
- Specified by:
await
in interfaceFuture<java.lang.Void>
- Specified by:
await
in interfaceProgressiveFuture<java.lang.Void>
- Throws:
java.lang.InterruptedException
- if the current thread was interrupted
-
awaitUninterruptibly
ChannelProgressiveFuture awaitUninterruptibly()
Description copied from interface:Future
Waits for this future to be completed without interruption. This method catches anInterruptedException
and discards it silently.- Specified by:
awaitUninterruptibly
in interfaceChannelFuture
- Specified by:
awaitUninterruptibly
in interfaceFuture<java.lang.Void>
- Specified by:
awaitUninterruptibly
in interfaceProgressiveFuture<java.lang.Void>
-
-