Top Fields Constructors Methods
io.netty.channel.kqueue

public final Class KQueueServerDomainSocketChannel

extends AbstractKQueueServerChannel
implements ServerDomainSocketChannel
Class Inheritance
All Implemented Interfaces
io.netty.channel.unix.ServerDomainSocketChannel, io.netty.channel.unix.UnixChannel, io.netty.channel.Channel, java.lang.Comparable, io.netty.channel.ChannelOutboundInvoker, io.netty.util.AttributeMap, io.netty.channel.ServerChannel
Annotations
@UnstableApi
Imports
io.netty.channel.Channel, io.netty.channel.unix.DomainSocketAddress, .ServerDomainSocketChannel, io.netty.util.internal.UnstableApi, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.io.File, java.net.SocketAddress

Field Summary

Modifier and TypeField and Description
private final KQueueServerChannelConfig
private volatile DomainSocketAddress
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
public
public
pack-priv

Method Summary

Modifier and TypeMethod and Description
public KQueueServerChannelConfig
config()

Implements abstract io.netty.channel.kqueue.AbstractKQueueChannel.config.

Implements io.netty.channel.Channel.config.

Returns the configuration of this channel.
protected void
protected void
public DomainSocketAddress
protected DomainSocketAddress
protected Channel
newChildChannel(int fd, byte[] addr, int offset, int len)

Implements abstract io.netty.channel.kqueue.AbstractKQueueServerChannel.newChildChannel.

public DomainSocketAddress
Inherited from io.netty.channel.kqueue.AbstractKQueueServerChannel:
doConnectdoWritefilterOutboundMessageisCompatiblemetadatanewUnsaferemoteAddress0

Field Detail

configback to summary
private final KQueueServerChannelConfig config
localback to summary
private volatile DomainSocketAddress local

Hides io.netty.channel.kqueue.AbstractKQueueChannel.local.

loggerback to summary
private static final InternalLogger logger

Hides io.netty.channel.AbstractChannel.logger.

Constructor Detail

KQueueServerDomainSocketChannelback to summary
public KQueueServerDomainSocketChannel()
KQueueServerDomainSocketChannelback to summary
public KQueueServerDomainSocketChannel(int fd)
KQueueServerDomainSocketChannelback to summary
pack-priv KQueueServerDomainSocketChannel(BsdSocket socket, boolean active)

Method Detail

configback to summary
public KQueueServerChannelConfig config()

Implements abstract io.netty.channel.kqueue.AbstractKQueueChannel.config.

Implements io.netty.channel.Channel.config.

Doc from io.netty.channel.Channel.config.

Returns the configuration of this channel.

Annotations
@Override
doBindback to summary
protected void doBind(SocketAddress localAddress) throws Exception

Overrides io.netty.channel.kqueue.AbstractKQueueChannel.doBind.

Doc from io.netty.channel.AbstractChannel.doBind.

Bind the Channel to the SocketAddress

Annotations
@Override
doCloseback to summary
protected void doClose() throws Exception

Overrides io.netty.channel.kqueue.AbstractKQueueChannel.doClose.

Doc from io.netty.channel.AbstractChannel.doClose.

Close the Channel

Annotations
@Override
localAddressback to summary
public DomainSocketAddress localAddress()

Overrides io.netty.channel.AbstractChannel.localAddress.

Implements io.netty.channel.unix.ServerDomainSocketChannel.localAddress, io.netty.channel.Channel.localAddress.

Doc from io.netty.channel.Channel.localAddress.

Returns the local address where this channel is bound to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.

Returns:DomainSocketAddress

the local address of this channel. null if this channel is not bound.

Annotations
@Override
localAddress0back to summary
protected DomainSocketAddress localAddress0()

Overrides io.netty.channel.kqueue.AbstractKQueueChannel.localAddress0.

Doc from io.netty.channel.AbstractChannel.localAddress0.

Returns the SocketAddress which is bound locally.

Annotations
@Override
newChildChannelback to summary
protected Channel newChildChannel(int fd, byte[] addr, int offset, int len) throws Exception

Implements abstract io.netty.channel.kqueue.AbstractKQueueServerChannel.newChildChannel.

Annotations
@Override
remoteAddressback to summary
public DomainSocketAddress remoteAddress()

Overrides io.netty.channel.AbstractChannel.remoteAddress.

Implements io.netty.channel.unix.ServerDomainSocketChannel.remoteAddress, io.netty.channel.Channel.remoteAddress.

Doc from io.netty.channel.Channel.remoteAddress.

Returns the remote address where this channel is connected to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.

Returns:DomainSocketAddress

the remote address of this channel. 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 DatagramPacket#recipient() to determine the origination of the received message as this method will return null.

Annotations
@Override