public class LocalChannel extends AbstractChannel
Channel for the local transport.AbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Constructor and Description |
|---|
LocalChannel() |
LocalChannel(Integer id) |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
config()
Returns the configuration of this channel.
|
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected void |
doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) |
protected void |
doPreClose() |
protected Runnable |
doRegister() |
boolean |
isActive() |
protected boolean |
isCompatible(EventLoop loop) |
protected boolean |
isFlushPending() |
boolean |
isOpen() |
LocalAddress |
localAddress()
Returns the local address where this channel is bound to.
|
protected SocketAddress |
localAddress0() |
ChannelMetadata |
metadata()
|
protected Channel.Unsafe |
newUnsafe() |
LocalServerChannel |
parent()
Returns the parent of this channel.
|
LocalAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
protected SocketAddress |
remoteAddress0() |
bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doFlushByteBuffer, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, newFailedFuture, newFuture, newSucceededFuture, outboundByteBuffer, outboundMessageBuffer, pipeline, toString, unsafe, write, writepublic LocalChannel()
public LocalChannel(Integer id)
public ChannelMetadata metadata()
Channelpublic ChannelConfig config()
Channelpublic LocalServerChannel parent()
Channelparent in interface Channelparent in class AbstractChannelnull if this channel does not have a parent channel.public LocalAddress localAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.localAddress in interface ChannellocalAddress in class AbstractChannelnull if this channel is not bound.public LocalAddress remoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.remoteAddress in interface ChannelremoteAddress in class AbstractChannelnull if this channel is not connected.
If this channel is not connected but it can receive messages
from arbitrary remote addresses (e.g. DatagramChannel,
use MessageEvent#getRemoteAddress() to determine
the origination of the received message as this method will
return null.public boolean isOpen()
public boolean isActive()
protected Channel.Unsafe newUnsafe()
newUnsafe in class AbstractChannelprotected boolean isCompatible(EventLoop loop)
isCompatible in class AbstractChannelprotected SocketAddress localAddress0()
localAddress0 in class AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelprotected Runnable doRegister() throws Exception
doRegister in class AbstractChannelExceptionprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class AbstractChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionprotected void doPreClose()
throws Exception
doPreClose in class AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class AbstractChannelExceptionprotected void doDeregister()
throws Exception
doDeregister in class AbstractChannelExceptionprotected void doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) throws Exception
doFlushMessageBuffer in class AbstractChannelExceptionprotected boolean isFlushPending()
isFlushPending in class AbstractChannelCopyright © 2008-2012 The Netty Project. All Rights Reserved.