ServerSocketChannel implementation that uses KQueue.
ServerSocketChannel and UnixChannel,
KQueueServerSocketChannel allows the following options in the option map:
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private volatile int | |
| private final EventLoopGroup | |
| private volatile boolean | |
| private static final InternalLogger | |
| private static final Set | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ProtocolFamily protocolFamily)
|
| public | KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, int fd, ProtocolFamily protocolFamily)
|
| private | KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, BsdSocket socket)
|
| Modifier and Type | Method and Description |
|---|---|
| public EventLoopGroup | childEventLoopGroup()
Implements io. EventLoopGroup that is used to register the child Channels on after accepting
these.
|
| protected void | doBind(SocketAddress
the localAddress)SocketAddress to bound to.Overrides io. Channel to the SocketAddress
|
| protected void | |
| protected boolean | doConnect(SocketAddress
the address of the remote peer. remoteAddress, SocketAddress the local address of this channel. localAddress, Buffer the initial data that is written during connect
(if initialData)ChannelOption#TCP_FASTOPEN_CONNECT is supported and configured).
If data is written care must be taken to update the
reader offset.Overrides io. |
| protected void | doShutdown(ChannelShutdownDirection
the direction to shut down. direction)Implements abstract io. Channel.
|
| protected void | doWriteNow(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>.
the writeHandleWriteSink that must be completed with the write
progress.
WriteSink#complete(long, long, int, boolean) or
WriteSink#complete(long, Throwable, boolean) must be called
exactly once before this method returns non-exceptional.Implements abstract io. false or there are
no more messages to write.
|
| protected Object | filterOutboundMessage(Object
the message to filter / convert. msg)Overrides io. AbstractChannel, so that
the Channel implementation converts the message to another.
|
| private AcceptFilter | |
| private int | |
| protected <T> T | getExtendedOption(ChannelOption<T>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private int | |
| protected boolean | isExtendedOptionSupported(ChannelOption<?>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private boolean | |
| private boolean | |
| public boolean | isShutdown(ChannelShutdownDirection direction)
Implements io. true if the ChannelShutdownDirection of the Channel was shutdown before.
|
| private boolean | |
| private boolean | |
| private Channel | |
| pack-priv int | readReady(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>.
Implements abstract io. |
| protected SocketAddress | remoteAddress0()
Overrides io. SocketAddress which the Channel is connected to.
|
| private void | |
| private void | |
| protected <T> void | setExtendedOption(ChannelOption<T>
the option, T value)ChannelOption.Overrides io. ChannelOptions.
|
| private void | |
| private void | |
| private void | |
| private void | setTcpFastOpen(boolean
true if TCP FastOpen should be enabled for incomming connections.Enables TCP FastOpen on the server channel. |
| private static Set | |
| private static Set |
| acceptedAddress | back to summary |
|---|---|
| private final byte[] acceptedAddress | |
| backlog | back to summary |
|---|---|
| private volatile int backlog | |
| childEventLoopGroup | back to summary |
|---|---|
| private final EventLoopGroup childEventLoopGroup | |
| enableTcpFastOpen | back to summary |
|---|---|
| private volatile boolean enableTcpFastOpen | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| SUPPORTED_OPTIONS | back to summary |
|---|---|
| private static final Set<ChannelOption<?>> SUPPORTED_OPTIONS | |
| SUPPORTED_OPTIONS_DOMAIN | back to summary |
|---|---|
| private static final Set<ChannelOption<?>> SUPPORTED_OPTIONS_DOMAIN | |
| KQueueServerSocketChannel | back to summary |
|---|---|
| public KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup) | |
| KQueueServerSocketChannel | back to summary |
|---|---|
| public KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ProtocolFamily protocolFamily) | |
| KQueueServerSocketChannel | back to summary |
|---|---|
| public KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, int fd, ProtocolFamily protocolFamily) | |
| KQueueServerSocketChannel | back to summary |
|---|---|
| private KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, BsdSocket socket) | |
| childEventLoopGroup | back to summary |
|---|---|
| public EventLoopGroup childEventLoopGroup() Implements io. Doc from io. Returns the
| |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress localAddress) throws Exception Overrides io. Doc from io. Bind the
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws Exception Overrides io. Doc from io. Close the | |
| doConnect | back to summary |
|---|---|
| protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress, Buffer initialData) Overrides io. Doc from io. Connect to the remote peer
| |
| doShutdown | back to summary |
|---|---|
| protected void doShutdown(ChannelShutdownDirection direction) Implements abstract io. Doc from io. Shutdown one direction of the
| |
| doWriteNow | back to summary |
|---|---|
| protected void doWriteNow(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>. Implements abstract io. Doc from io. Called in a loop when writes should be performed until this method returns
| |
| filterOutboundMessage | back to summary |
|---|---|
| protected Object filterOutboundMessage(Object msg) Overrides io. Doc from io. Invoked when a new message is added to to the outbound queue of this | |
| getAcceptFilter | back to summary |
|---|---|
| private AcceptFilter getAcceptFilter() | |
| getBacklog | back to summary |
|---|---|
| private int getBacklog() | |
| getExtendedOption | back to summary |
|---|---|
| protected <T> T getExtendedOption(ChannelOption<T> option) Overrides io. Doc from io. Override to add support for more
| |
| getReceiveBufferSize | back to summary |
|---|---|
| private int getReceiveBufferSize() | |
| isExtendedOptionSupported | back to summary |
|---|---|
| protected boolean isExtendedOptionSupported(ChannelOption<?> option) Overrides io. Doc from io. Override to add support for more
| |
| isReuseAddress | back to summary |
|---|---|
| private boolean isReuseAddress() | |
| isReusePort | back to summary |
|---|---|
| private boolean isReusePort() | |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown(ChannelShutdownDirection direction) Implements io. Doc from io. Returns
| |
| isSupported | back to summary |
|---|---|
| private boolean isSupported(SocketProtocolFamily protocolFamily, ChannelOption<?> option) | |
| isTcpFastOpen | back to summary |
|---|---|
| private boolean isTcpFastOpen() Returns
| |
| newChildChannel | back to summary |
|---|---|
| private Channel newChildChannel(int fd, byte[] address, int offset, int len) throws Exception | |
| readReady | back to summary |
|---|---|
| pack-priv int readReady(AbstractChannel<UnixChannel, SocketAddress, SocketAddress>. Implements abstract io.
| |
| remoteAddress0 | back to summary |
|---|---|
| protected SocketAddress remoteAddress0() Overrides io. Doc from io. Return the
| |
| setAcceptFilter | back to summary |
|---|---|
| private void setAcceptFilter(AcceptFilter acceptFilter) | |
| setBacklog | back to summary |
|---|---|
| private void setBacklog(int backlog) | |
| setExtendedOption | back to summary |
|---|---|
| protected <T> void setExtendedOption(ChannelOption<T> option, T value) Overrides io. Doc from io. Override to add support for more
| |
| setReceiveBufferSize | back to summary |
|---|---|
| private void setReceiveBufferSize(int receiveBufferSize) | |
| setReuseAddress | back to summary |
|---|---|
| private void setReuseAddress(boolean reuseAddress) | |
| setReusePort | back to summary |
|---|---|
| private void setReusePort(boolean reusePort) | |
| setTcpFastOpen | back to summary |
|---|---|
| private void setTcpFastOpen(boolean enableTcpFastOpen) Enables TCP FastOpen on the server channel. If the underlying os doesn't support TCP_FASTOPEN setting this has no effect. This has to be set before doing listen on the socket otherwise this takes no effect.
| |
| supportedOptions | back to summary |
|---|---|
| private static Set | |
| supportedOptionsDomainSocket | back to summary |
|---|---|
| private static Set | |