public class UnfailingChannelFuture extends DefaultChannelFuture
ChannelFuture
which can not fail at all. Any attempt to mark
this future as failure, by calling setFailure(Throwable)
will raise
an IllegalStateException
.Constructor and Description |
---|
UnfailingChannelFuture(Channel channel,
boolean cancellable)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
setFailure(Throwable cause)
Marks this future as a failure and notifies all
listeners.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getCause, getChannel, isCancelled, isDone, isSuccess, isUseDeadLockChecker, removeListener, setSuccess, setUseDeadLockChecker
public boolean setFailure(Throwable cause)
ChannelFuture
setFailure
in interface ChannelFuture
setFailure
in class DefaultChannelFuture
true
if and only if successfully marked this future as
a failure. Otherwise false
because this future is
already marked as either a success or a failure.Copyright © 2008–2013 JBoss, by Red Hat. All rights reserved.