public interface ChannelProgressivePromise extends io.netty.util.concurrent.ProgressivePromise<Void>, ChannelProgressiveFuture, ChannelPromise
ChannelPromise
which will be notified once the associated bytes is transferring.Modifier and Type | Method and Description |
---|---|
ChannelProgressivePromise |
addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
ChannelProgressivePromise |
addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
ChannelProgressivePromise |
await() |
ChannelProgressivePromise |
awaitUninterruptibly() |
ChannelProgressivePromise |
removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
ChannelProgressivePromise |
removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
ChannelProgressivePromise |
setFailure(Throwable cause) |
ChannelProgressivePromise |
setProgress(long progress,
long total) |
ChannelProgressivePromise |
setSuccess() |
ChannelProgressivePromise |
setSuccess(Void result) |
ChannelProgressivePromise |
sync() |
ChannelProgressivePromise |
syncUninterruptibly() |
channel, trySuccess
setUncancellable, tryFailure, trySuccess
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
get, get, isCancelled, isDone
ChannelProgressivePromise addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
addListener
in interface ChannelFuture
addListener
in interface ChannelProgressiveFuture
addListener
in interface ChannelPromise
addListener
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
addListener
in interface io.netty.util.concurrent.ProgressivePromise<Void>
addListener
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
addListeners
in interface ChannelFuture
addListeners
in interface ChannelProgressiveFuture
addListeners
in interface ChannelPromise
addListeners
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
addListeners
in interface io.netty.util.concurrent.ProgressivePromise<Void>
addListeners
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
removeListener
in interface ChannelFuture
removeListener
in interface ChannelProgressiveFuture
removeListener
in interface ChannelPromise
removeListener
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
removeListener
in interface io.netty.util.concurrent.ProgressivePromise<Void>
removeListener
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
removeListeners
in interface ChannelFuture
removeListeners
in interface ChannelProgressiveFuture
removeListeners
in interface ChannelPromise
removeListeners
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
removeListeners
in interface io.netty.util.concurrent.ProgressivePromise<Void>
removeListeners
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise sync() throws InterruptedException
sync
in interface ChannelFuture
sync
in interface ChannelProgressiveFuture
sync
in interface ChannelPromise
sync
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
sync
in interface io.netty.util.concurrent.ProgressivePromise<Void>
sync
in interface io.netty.util.concurrent.Promise<Void>
InterruptedException
ChannelProgressivePromise syncUninterruptibly()
syncUninterruptibly
in interface ChannelFuture
syncUninterruptibly
in interface ChannelProgressiveFuture
syncUninterruptibly
in interface ChannelPromise
syncUninterruptibly
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
syncUninterruptibly
in interface io.netty.util.concurrent.ProgressivePromise<Void>
syncUninterruptibly
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise await() throws InterruptedException
await
in interface ChannelFuture
await
in interface ChannelProgressiveFuture
await
in interface ChannelPromise
await
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
await
in interface io.netty.util.concurrent.ProgressivePromise<Void>
await
in interface io.netty.util.concurrent.Promise<Void>
InterruptedException
ChannelProgressivePromise awaitUninterruptibly()
awaitUninterruptibly
in interface ChannelFuture
awaitUninterruptibly
in interface ChannelProgressiveFuture
awaitUninterruptibly
in interface ChannelPromise
awaitUninterruptibly
in interface io.netty.util.concurrent.ProgressiveFuture<Void>
awaitUninterruptibly
in interface io.netty.util.concurrent.ProgressivePromise<Void>
awaitUninterruptibly
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise setSuccess(Void result)
setSuccess
in interface ChannelPromise
setSuccess
in interface io.netty.util.concurrent.ProgressivePromise<Void>
setSuccess
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise setSuccess()
setSuccess
in interface ChannelPromise
ChannelProgressivePromise setFailure(Throwable cause)
setFailure
in interface ChannelPromise
setFailure
in interface io.netty.util.concurrent.ProgressivePromise<Void>
setFailure
in interface io.netty.util.concurrent.Promise<Void>
ChannelProgressivePromise setProgress(long progress, long total)
setProgress
in interface io.netty.util.concurrent.ProgressivePromise<Void>
Copyright © 2008–2017 The Netty Project. All rights reserved.