public final class EpollServerDomainSocketChannel extends AbstractEpollServerChannel implements ServerDomainSocketChannel
AbstractEpollServerChannel.EpollServerSocketUnsafe
AbstractEpollChannel.AbstractEpollUnsafe
AbstractChannel.AbstractUnsafe
Channel.Unsafe
Modifier and Type | Field and Description |
---|---|
private EpollServerChannelConfig |
config |
private DomainSocketAddress |
local |
private static InternalLogger |
logger |
active, flags
Constructor and Description |
---|
EpollServerDomainSocketChannel() |
EpollServerDomainSocketChannel(FileDescriptor fd)
Deprecated.
Use
EpollServerDomainSocketChannel(Socket, boolean) .
Creates a new EpollServerDomainSocketChannel from an existing FileDescriptor . |
EpollServerDomainSocketChannel(Socket fd)
Deprecated.
|
EpollServerDomainSocketChannel(Socket fd,
boolean active) |
Modifier and Type | Method and Description |
---|---|
EpollServerChannelConfig |
config()
Returns the configuration of this channel.
|
protected void |
doBind(java.net.SocketAddress localAddress)
Bind the
Channel to the SocketAddress |
protected void |
doClose()
Close the
Channel |
DomainSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
protected DomainSocketAddress |
localAddress0()
Returns the
SocketAddress which is bound locally. |
protected Channel |
newChildChannel(int fd,
byte[] addr,
int offset,
int len) |
DomainSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
doWrite, filterOutboundMessage, isCompatible, newUnsafe, remoteAddress0
checkResolvable, clearEpollIn, clearFlag, doBeginRead, doDeregister, doDisconnect, doReadBytes, doRegister, doWriteBytes, fd, isActive, isFlagSet, isOpen, isSoErrorZero, metadata, newDirectBuffer, newDirectBuffer, setFlag
alloc, bind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, equals, eventLoop, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newChannelPipeline, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fd
alloc, bind, bind, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
private static final InternalLogger logger
private final EpollServerChannelConfig config
private volatile DomainSocketAddress local
public EpollServerDomainSocketChannel()
public EpollServerDomainSocketChannel(FileDescriptor fd)
EpollServerDomainSocketChannel(Socket, boolean)
.
Creates a new EpollServerDomainSocketChannel
from an existing FileDescriptor
.public EpollServerDomainSocketChannel(Socket fd)
EpollServerDomainSocketChannel(Socket, boolean)
.public EpollServerDomainSocketChannel(Socket fd, boolean active)
protected Channel newChildChannel(int fd, byte[] addr, int offset, int len) throws java.lang.Exception
newChildChannel
in class AbstractEpollServerChannel
java.lang.Exception
protected DomainSocketAddress localAddress0()
AbstractChannel
SocketAddress
which is bound locally.localAddress0
in class AbstractChannel
protected void doBind(java.net.SocketAddress localAddress) throws java.lang.Exception
AbstractChannel
Channel
to the SocketAddress
doBind
in class AbstractChannel
java.lang.Exception
protected void doClose() throws java.lang.Exception
AbstractChannel
Channel
doClose
in class AbstractEpollChannel
java.lang.Exception
public EpollServerChannelConfig config()
Channel
config
in interface Channel
config
in class AbstractEpollChannel
public DomainSocketAddress remoteAddress()
Channel
SocketAddress
is supposed to be down-cast into more
concrete type such as InetSocketAddress
to retrieve the detailed
information.remoteAddress
in interface Channel
remoteAddress
in interface ServerDomainSocketChannel
remoteAddress
in class AbstractChannel
null
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 DefaultAddressedEnvelope.recipient()
to determine
the origination of the received message as this method will
return null
.public DomainSocketAddress localAddress()
Channel
SocketAddress
is supposed to be down-cast into more concrete
type such as InetSocketAddress
to retrieve the detailed
information.localAddress
in interface Channel
localAddress
in interface ServerDomainSocketChannel
localAddress
in class AbstractChannel
null
if this channel is not bound.