public interface ChannelPromise extends ChannelFuture, io.netty.util.concurrent.Promise<Void>
ChannelFuture
which is writable.Modifier and Type | Method and Description |
---|---|
ChannelPromise |
addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
ChannelPromise |
addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
ChannelPromise |
await() |
ChannelPromise |
awaitUninterruptibly() |
Channel |
channel()
Returns a channel where the I/O operation associated with this
future takes place.
|
ChannelPromise |
removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
ChannelPromise |
removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
ChannelPromise |
setFailure(Throwable cause) |
ChannelPromise |
setSuccess() |
ChannelPromise |
setSuccess(Void result) |
ChannelPromise |
sync() |
ChannelPromise |
syncUninterruptibly() |
boolean |
trySuccess() |
ChannelPromise |
unvoid()
|
isVoid
setUncancellable, tryFailure, trySuccess
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
get, get, isCancelled, isDone
Channel channel()
ChannelFuture
channel
in interface ChannelFuture
ChannelPromise setSuccess(Void result)
setSuccess
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise setSuccess()
boolean trySuccess()
ChannelPromise setFailure(Throwable cause)
setFailure
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
addListener
in interface ChannelFuture
addListener
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
addListeners
in interface ChannelFuture
addListeners
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
removeListener
in interface ChannelFuture
removeListener
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
removeListeners
in interface ChannelFuture
removeListeners
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise sync() throws InterruptedException
sync
in interface ChannelFuture
sync
in interface io.netty.util.concurrent.Promise<Void>
InterruptedException
ChannelPromise syncUninterruptibly()
syncUninterruptibly
in interface ChannelFuture
syncUninterruptibly
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise await() throws InterruptedException
await
in interface ChannelFuture
await
in interface io.netty.util.concurrent.Promise<Void>
InterruptedException
ChannelPromise awaitUninterruptibly()
awaitUninterruptibly
in interface ChannelFuture
awaitUninterruptibly
in interface io.netty.util.concurrent.Promise<Void>
ChannelPromise unvoid()
Copyright © 2008–2015 The Netty Project. All rights reserved.