@UnstableApi public final class VoidChannelPromise extends io.netty.util.concurrent.AbstractFuture<Void> implements ChannelPromise
Constructor and Description |
---|
VoidChannelPromise(Channel channel,
boolean fireException)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
VoidChannelPromise |
addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
VoidChannelPromise |
addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
VoidChannelPromise |
await() |
boolean |
await(long timeoutMillis) |
boolean |
await(long timeout,
TimeUnit unit) |
VoidChannelPromise |
awaitUninterruptibly() |
boolean |
awaitUninterruptibly(long timeoutMillis) |
boolean |
awaitUninterruptibly(long timeout,
TimeUnit unit) |
boolean |
cancel(boolean mayInterruptIfRunning) |
Throwable |
cause() |
Channel |
channel()
Returns a channel where the I/O operation associated with this
future takes place.
|
Void |
getNow() |
boolean |
isCancellable() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isSuccess() |
boolean |
isVoid()
Returns
true if this ChannelFuture is a void future and so not allow to call any of the
following methods:
ChannelFuture.addListener(GenericFutureListener)
ChannelFuture.addListeners(GenericFutureListener[])
ChannelFuture.await()
Future.await(long, TimeUnit) ()}
Future.await(long) ()}
ChannelFuture.awaitUninterruptibly()
ChannelFuture.sync()
ChannelFuture.syncUninterruptibly()
|
VoidChannelPromise |
removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) |
VoidChannelPromise |
removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners) |
VoidChannelPromise |
setFailure(Throwable cause) |
VoidChannelPromise |
setSuccess() |
VoidChannelPromise |
setSuccess(Void result) |
boolean |
setUncancellable() |
VoidChannelPromise |
sync() |
VoidChannelPromise |
syncUninterruptibly() |
boolean |
tryFailure(Throwable cause) |
boolean |
trySuccess() |
boolean |
trySuccess(Void result) |
ChannelPromise |
unvoid()
|
public VoidChannelPromise addListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
addListener
in interface ChannelFuture
addListener
in interface ChannelPromise
addListener
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise addListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
addListeners
in interface ChannelFuture
addListeners
in interface ChannelPromise
addListeners
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise removeListener(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
removeListener
in interface ChannelFuture
removeListener
in interface ChannelPromise
removeListener
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise removeListeners(io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
removeListeners
in interface ChannelFuture
removeListeners
in interface ChannelPromise
removeListeners
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise await() throws InterruptedException
await
in interface ChannelFuture
await
in interface ChannelPromise
await
in interface io.netty.util.concurrent.Promise<Void>
InterruptedException
public boolean await(long timeout, TimeUnit unit)
public boolean await(long timeoutMillis)
public VoidChannelPromise awaitUninterruptibly()
awaitUninterruptibly
in interface ChannelFuture
awaitUninterruptibly
in interface ChannelPromise
awaitUninterruptibly
in interface io.netty.util.concurrent.Promise<Void>
public boolean awaitUninterruptibly(long timeout, TimeUnit unit)
public boolean awaitUninterruptibly(long timeoutMillis)
public Channel channel()
ChannelFuture
channel
in interface ChannelFuture
channel
in interface ChannelPromise
public boolean isSuccess()
public boolean setUncancellable()
setUncancellable
in interface io.netty.util.concurrent.Promise<Void>
public boolean isCancellable()
public boolean isCancelled()
isCancelled
in interface Future<Void>
public Throwable cause()
public VoidChannelPromise sync()
sync
in interface ChannelFuture
sync
in interface ChannelPromise
sync
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise syncUninterruptibly()
syncUninterruptibly
in interface ChannelFuture
syncUninterruptibly
in interface ChannelPromise
syncUninterruptibly
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise setFailure(Throwable cause)
setFailure
in interface ChannelPromise
setFailure
in interface io.netty.util.concurrent.Promise<Void>
public VoidChannelPromise setSuccess()
setSuccess
in interface ChannelPromise
public boolean tryFailure(Throwable cause)
tryFailure
in interface io.netty.util.concurrent.Promise<Void>
public boolean cancel(boolean mayInterruptIfRunning)
public boolean trySuccess()
trySuccess
in interface ChannelPromise
public VoidChannelPromise setSuccess(Void result)
setSuccess
in interface ChannelPromise
setSuccess
in interface io.netty.util.concurrent.Promise<Void>
public boolean trySuccess(Void result)
trySuccess
in interface io.netty.util.concurrent.Promise<Void>
public Void getNow()
public ChannelPromise unvoid()
ChannelPromise
unvoid
in interface ChannelPromise
public boolean isVoid()
ChannelFuture
true
if this ChannelFuture
is a void future and so not allow to call any of the
following methods:
ChannelFuture.addListener(GenericFutureListener)
ChannelFuture.addListeners(GenericFutureListener[])
ChannelFuture.await()
Future.await(long, TimeUnit)
()}Future.await(long)
()}ChannelFuture.awaitUninterruptibly()
ChannelFuture.sync()
ChannelFuture.syncUninterruptibly()
isVoid
in interface ChannelFuture
Copyright © 2008–2024 The Netty Project. All rights reserved.