public interface ChannelProgressivePromise extends ProgressivePromise<Void>, ChannelProgressiveFuture, ChannelPromise
ChannelPromise
which will be notified once the associated bytes is transferring.Modifier and Type | Method and Description |
---|---|
ChannelProgressivePromise |
addListener(GenericFutureListener<? extends Future<? super Void>> listener)
Adds the specified listener to this future.
|
ChannelProgressivePromise |
addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Adds the specified listeners to this future.
|
ChannelProgressivePromise |
await()
Waits for this future to be completed.
|
ChannelProgressivePromise |
awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
ChannelProgressivePromise |
removeListener(GenericFutureListener<? extends Future<? super Void>> listener)
Removes the first occurrence of the specified listener from this future.
|
ChannelProgressivePromise |
removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Removes the first occurrence for each of the listeners from this future.
|
ChannelProgressivePromise |
setFailure(Throwable cause)
Marks this future as a failure and notifies all
listeners.
|
ChannelProgressivePromise |
setProgress(long progress,
long total)
Sets the current progress of the operation and notifies the listeners that implement
GenericProgressiveFutureListener . |
ChannelProgressivePromise |
setSuccess() |
ChannelProgressivePromise |
setSuccess(Void result)
Marks this future as a success and notifies all
listeners.
|
ChannelProgressivePromise |
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
ChannelProgressivePromise |
syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
ChannelProgressivePromise |
unvoid()
|
tryProgress
channel, trySuccess
isVoid
setUncancellable, tryFailure, trySuccess
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
get, get, isCancelled, isDone
ChannelProgressivePromise addListener(GenericFutureListener<? extends Future<? super Void>> listener)
Future
addListener
in interface ChannelFuture
addListener
in interface ChannelProgressiveFuture
addListener
in interface ChannelPromise
addListener
in interface ProgressiveFuture<Void>
addListener
in interface ProgressivePromise<Void>
addListener
in interface Promise<Void>
ChannelProgressivePromise addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Future
addListeners
in interface ChannelFuture
addListeners
in interface ChannelProgressiveFuture
addListeners
in interface ChannelPromise
addListeners
in interface ProgressiveFuture<Void>
addListeners
in interface ProgressivePromise<Void>
addListeners
in interface Promise<Void>
ChannelProgressivePromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener)
Future
removeListener
in interface ChannelFuture
removeListener
in interface ChannelProgressiveFuture
removeListener
in interface ChannelPromise
removeListener
in interface ProgressiveFuture<Void>
removeListener
in interface ProgressivePromise<Void>
removeListener
in interface Promise<Void>
ChannelProgressivePromise removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Future
removeListeners
in interface ChannelFuture
removeListeners
in interface ChannelProgressiveFuture
removeListeners
in interface ChannelPromise
removeListeners
in interface ProgressiveFuture<Void>
removeListeners
in interface ProgressivePromise<Void>
removeListeners
in interface Promise<Void>
ChannelProgressivePromise sync() throws InterruptedException
Future
sync
in interface ChannelFuture
sync
in interface ChannelProgressiveFuture
sync
in interface ChannelPromise
sync
in interface ProgressiveFuture<Void>
sync
in interface ProgressivePromise<Void>
sync
in interface Promise<Void>
InterruptedException
ChannelProgressivePromise syncUninterruptibly()
Future
syncUninterruptibly
in interface ChannelFuture
syncUninterruptibly
in interface ChannelProgressiveFuture
syncUninterruptibly
in interface ChannelPromise
syncUninterruptibly
in interface ProgressiveFuture<Void>
syncUninterruptibly
in interface ProgressivePromise<Void>
syncUninterruptibly
in interface Promise<Void>
ChannelProgressivePromise await() throws InterruptedException
Future
await
in interface ChannelFuture
await
in interface ChannelProgressiveFuture
await
in interface ChannelPromise
await
in interface ProgressiveFuture<Void>
await
in interface ProgressivePromise<Void>
await
in interface Promise<Void>
InterruptedException
- if the current thread was interruptedChannelProgressivePromise awaitUninterruptibly()
Future
InterruptedException
and
discards it silently.awaitUninterruptibly
in interface ChannelFuture
awaitUninterruptibly
in interface ChannelProgressiveFuture
awaitUninterruptibly
in interface ChannelPromise
awaitUninterruptibly
in interface ProgressiveFuture<Void>
awaitUninterruptibly
in interface ProgressivePromise<Void>
awaitUninterruptibly
in interface Promise<Void>
ChannelProgressivePromise setSuccess(Void result)
Promise
IllegalStateException
.setSuccess
in interface ChannelPromise
setSuccess
in interface ProgressivePromise<Void>
setSuccess
in interface Promise<Void>
ChannelProgressivePromise setSuccess()
setSuccess
in interface ChannelPromise
ChannelProgressivePromise setFailure(Throwable cause)
Promise
IllegalStateException
.setFailure
in interface ChannelPromise
setFailure
in interface ProgressivePromise<Void>
setFailure
in interface Promise<Void>
ChannelProgressivePromise setProgress(long progress, long total)
ProgressivePromise
GenericProgressiveFutureListener
.setProgress
in interface ProgressivePromise<Void>
ChannelProgressivePromise unvoid()
ChannelPromise
unvoid
in interface ChannelPromise
Copyright © 2008–2017 The Netty Project. All rights reserved.