class OioServerSocketChannel extends AbstractServerChannel implements ServerSocketChannel
| Modifier and Type | Field and Description |
|---|---|
private ServerSocketChannelConfig |
config |
private static InternalLogger |
logger |
(package private) java.util.concurrent.locks.Lock |
shutdownLock |
(package private) java.net.ServerSocket |
socket |
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE| Constructor and Description |
|---|
OioServerSocketChannel(ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink) |
| Modifier and Type | Method and Description |
|---|---|
ServerSocketChannelConfig |
getConfig()
Returns the configuration of this channel.
|
java.net.InetSocketAddress |
getLocalAddress()
Returns the local address where this channel is bound to.
|
java.net.InetSocketAddress |
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, writeprivate static final InternalLogger logger
final java.net.ServerSocket socket
final java.util.concurrent.locks.Lock shutdownLock
private final ServerSocketChannelConfig config
OioServerSocketChannel(ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink)
public ServerSocketChannelConfig getConfig()
ChannelgetConfig in interface ChannelgetConfig in interface ServerSocketChannelpublic java.net.InetSocketAddress 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 ServerSocketChannelnull if this channel is not bound.public java.net.InetSocketAddress 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 ServerSocketChannelnull 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 isBound()
Channeltrue if and only if this channel is bound to a
local address.protected boolean setClosed()
AbstractChannelsetClosed in class AbstractChanneltrue if and only if this channel was not marked as
closed yet