final class DefaultLocalServerChannel extends AbstractServerChannel implements LocalServerChannel
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.concurrent.atomic.AtomicBoolean |
bound |
(package private) ChannelConfig |
channelConfig |
(package private) LocalAddress |
localAddress |
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE| Constructor and Description |
|---|
DefaultLocalServerChannel(ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink) |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
getConfig()
Returns the configuration of this channel.
|
LocalAddress |
getLocalAddress()
Returns the local address where this channel is bound to.
|
LocalAddress |
getRemoteAddress()
Returns the remote address where this channel is connected to.
|
boolean |
isBound()
Returns
true if and only if this channel is bound to a
local address. |
protected boolean |
setClosed()
Marks this channel as closed.
|
connect, disconnect, getInterestOps, isConnected, setInterestOps, setInternalInterestOps, write, writebind, close, compareTo, equals, getAttachment, getCloseFuture, getFactory, getId, getInternalInterestOps, getParent, getPipeline, getSucceededFuture, getUnsupportedOperationFuture, getUserDefinedWritability, hashCode, isOpen, isReadable, isWritable, setAttachment, setReadable, setUnwritable, setUserDefinedWritability, setWritable, toString, unbindclone, finalize, getClass, notify, notifyAll, wait, wait, waitbind, close, connect, disconnect, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getUserDefinedWritability, isConnected, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUserDefinedWritability, unbind, write, writefinal ChannelConfig channelConfig
final java.util.concurrent.atomic.AtomicBoolean bound
volatile LocalAddress localAddress
DefaultLocalServerChannel(ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink)
public ChannelConfig getConfig()
Channelpublic boolean isBound()
Channeltrue if and only if this channel is bound to a
local address.public LocalAddress getLocalAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.getLocalAddress in interface ChannelgetLocalAddress in interface LocalServerChannelnull if this channel is not bound.public LocalAddress getRemoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.getRemoteAddress in interface ChannelgetRemoteAddress in interface LocalServerChannelnull 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.protected boolean setClosed()
AbstractChannelsetClosed in class AbstractChanneltrue if and only if this channel was not marked as
closed yet