public final class VoidChannel extends AbstractChannel
AbstractChannel.AbstractUnsafeChannel.Unsafe| Modifier and Type | Field and Description |
|---|---|
static VoidChannel |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
config()
Returns the configuration of this channel.
|
protected void |
doBeginRead()
Schedule a read operation.
|
protected void |
doBind(SocketAddress localAddress)
Bind the
Channel to the SocketAddress |
protected void |
doClose()
Close the
Channel |
protected void |
doDisconnect()
Disconnect this
Channel from its remote peer |
protected void |
doWrite(ChannelOutboundBuffer in)
Flush the content of the given buffer to the remote peer.
|
boolean |
isActive()
Return
true if the Channel is active and so connected. |
protected boolean |
isCompatible(EventLoop loop)
Return
true if the given EventLoop is compatible with this instance. |
boolean |
isOpen()
Returns
true if the Channel is open an may get active later |
protected SocketAddress |
localAddress0()
Returns the
SocketAddress which is bound locally. |
ChannelMetadata |
metadata()
|
protected AbstractChannel.AbstractUnsafe |
newUnsafe()
Create a new
AbstractChannel.AbstractUnsafe instance which will be used for the life-time of the Channel |
protected SocketAddress |
remoteAddress0()
Return the
SocketAddress which the Channel is connected to. |
String |
toString()
Returns the
String representation of this channel. |
alloc, bind, bind, checkEOF, close, close, closeFuture, compareTo, connect, connect, connect, connect, disconnect, disconnect, doDeregister, doRegister, equals, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushpublic static final VoidChannel INSTANCE
protected AbstractChannel.AbstractUnsafe newUnsafe()
AbstractChannelAbstractChannel.AbstractUnsafe instance which will be used for the life-time of the ChannelnewUnsafe in class AbstractChannelprotected boolean isCompatible(EventLoop loop)
AbstractChanneltrue if the given EventLoop is compatible with this instance.isCompatible in class AbstractChannelprotected SocketAddress localAddress0()
AbstractChannelSocketAddress which is bound locally.localAddress0 in class AbstractChannelprotected SocketAddress remoteAddress0()
AbstractChannelSocketAddress which the Channel is connected to.remoteAddress0 in class AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
AbstractChannelChannel to the SocketAddressdoBind in class AbstractChannelExceptionprotected void doDisconnect()
throws Exception
AbstractChannelChannel from its remote peerdoDisconnect in class AbstractChannelExceptionprotected void doClose()
throws Exception
AbstractChannelChanneldoClose in class AbstractChannelExceptionprotected void doBeginRead()
throws Exception
AbstractChanneldoBeginRead in class AbstractChannelExceptionprotected void doWrite(ChannelOutboundBuffer in) throws Exception
AbstractChanneldoWrite in class AbstractChannelExceptionpublic ChannelConfig config()
Channelpublic boolean isOpen()
Channeltrue if the Channel is open an may get active laterpublic boolean isActive()
Channeltrue if the Channel is active and so connected.public ChannelMetadata metadata()
Channelpublic String toString()
AbstractChannelString representation of this channel. The returned
string contains the AbstractChannel.hashCode() ID}, local address,
and remote address of this channel for
easier identification.toString in class AbstractChannelCopyright © 2008–2013 The Netty Project. All rights reserved.