public final class FailedChannel
extends io.netty.channel.AbstractChannel
The failed channel can be used to create a channel promise when no channel is available (because it failed).
Netty provides a similar class, but it is private and since its basically a wrapper its just copied over here.
Constructor and Description |
---|
FailedChannel() |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected void |
doDisconnect() |
protected void |
doWrite(io.netty.channel.ChannelOutboundBuffer in) |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
boolean |
isOpen() |
protected SocketAddress |
localAddress0() |
io.netty.channel.ChannelMetadata |
metadata() |
protected io.netty.channel.AbstractChannel.AbstractUnsafe |
newUnsafe() |
protected SocketAddress |
remoteAddress0() |
alloc, bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doDeregister, doRegister, doShutdownOutput, equals, eventLoop, filterOutboundMessage, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, newChannelPipeline, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
protected io.netty.channel.AbstractChannel.AbstractUnsafe newUnsafe()
newUnsafe
in class io.netty.channel.AbstractChannel
protected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible
in class io.netty.channel.AbstractChannel
protected SocketAddress localAddress0()
localAddress0
in class io.netty.channel.AbstractChannel
protected SocketAddress remoteAddress0()
remoteAddress0
in class io.netty.channel.AbstractChannel
protected void doBind(SocketAddress localAddress)
doBind
in class io.netty.channel.AbstractChannel
protected void doDisconnect()
doDisconnect
in class io.netty.channel.AbstractChannel
protected void doClose()
doClose
in class io.netty.channel.AbstractChannel
protected void doBeginRead()
doBeginRead
in class io.netty.channel.AbstractChannel
protected void doWrite(io.netty.channel.ChannelOutboundBuffer in)
doWrite
in class io.netty.channel.AbstractChannel
public io.netty.channel.ChannelConfig config()
public boolean isOpen()
public boolean isActive()
public io.netty.channel.ChannelMetadata metadata()
Copyright © 2018 Couchbase, Inc.. All rights reserved.