public class LocalServerChannel extends AbstractServerChannel
ServerChannel for the local transport.AbstractServerChannel.AbstractServerUnsafeAbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Constructor and Description |
|---|
LocalServerChannel() |
LocalServerChannel(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 |
doPreClose() |
protected Runnable |
doRegister() |
boolean |
isActive() |
protected boolean |
isCompatible(EventLoop loop) |
boolean |
isOpen() |
LocalAddress |
localAddress()
Returns the local address where this channel is bound to.
|
protected SocketAddress |
localAddress0() |
protected Channel.Unsafe |
newUnsafe() |
LocalAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
doDisconnect, doFlushByteBuffer, doFlushMessageBuffer, isFlushPending, metadata, outboundByteBuffer, outboundMessageBuffer, remoteAddress0bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, newFailedFuture, newFuture, newSucceededFuture, parent, pipeline, toString, unsafe, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcloseFuture, eventLoop, id, isRegistered, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareTopublic LocalServerChannel()
public LocalServerChannel(Integer id)
public ChannelConfig config()
Channelpublic 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 AbstractServerChannelnull 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 boolean isCompatible(EventLoop loop)
isCompatible in class AbstractChannelprotected SocketAddress localAddress0()
localAddress0 in class AbstractChannelprotected Runnable doRegister() throws Exception
doRegister in class AbstractChannelExceptionprotected void doBind(SocketAddress localAddress) throws Exception
doBind 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 Channel.Unsafe newUnsafe()
newUnsafe in class AbstractChannelCopyright © 2008-2012 The Netty Project. All Rights Reserved.