SocketChannel implementation that uses KQueue.
SocketChannel and UnixChannel,
KQueueSocketChannel allows the following options in the option map:
ChannelOption |
INET |
INET6 |
UNIX |
|---|---|---|---|
IntegerUnixChannelOption | X | X | X |
RawUnixChannelOption | X | X | X |
KQueueChannelOption#SO_SNDLOWAT | X | X | - |
KQueueChannelOption#TCP_NOPUSH | X | X | - |
ChannelOption#TCP_FASTOPEN_CONNECT | X | X | - |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private WritableByteChannel | |
| private static final String | |
| private volatile DomainSocketReadMode | |
| private static final Set | |
| private static final Set | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | |
| pack-priv | KQueueSocketChannel(KQueueServerSocketChannel parent, EventLoop eventLoop, BsdSocket fd, SocketAddress remoteAddress)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doConnect0(SocketAddress remoteAddress, SocketAddress localAddress, Buffer initialData)
Overrides io. |
| protected void | doShutdown(ChannelShutdownDirection
the direction to shut down. direction)Implements abstract io. Channel.
|
| private void | doWriteMultiple(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink used.Attempt to write multiple |
| protected void | doWriteNow(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink 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.
|
| private void | doWriteSingle(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink used.Attempt to write a single object. |
| private void | |
| protected Object | filterOutboundMessage(Object
the message to filter / convert. msg)Overrides io. AbstractChannel, so that
the Channel implementation converts the message to another.
|
| protected <T> T | getExtendedOption(ChannelOption<T>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private PeerCredentials | |
| private DomainSocketReadMode | |
| private int | |
| private int | |
| private int | |
| private int | |
| 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 boolean | |
| private boolean | |
| protected Future | prepareToClose()
Overrides io. Channel.
|
| pack-priv int | readReady(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
Implements abstract io. |
| private int | |
| private int | |
| protected <T> void | setExtendedOption(ChannelOption<T>
the option, T value)ChannelOption.Overrides io. ChannelOptions.
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private static Set | |
| private static Set | |
| private void | writeBytes(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink used.Write bytes form the given |
| private long | Returns: number of written bytes.The array which contains the content to write. array)Write multiple bytes via |
| private long | Returns: number of written bytes.The buffers to write. nioBuffers, int The number of buffers to write. nioBufferCnt, long The number of bytes we expect to write. expectedWrittenBytes, long The maximum number of bytes we should attempt to write. maxBytesPerGatheringWrite)Write multiple bytes via |
| private void | writeDefaultFileRegion(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink used.Write a |
| private void | writeFileRegion(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>.
the writeSinkWriteSink used.Write a |
| byteChannel | back to summary |
|---|---|
| private WritableByteChannel byteChannel | |
| EXPECTED_TYPES | back to summary |
|---|---|
| private static final String EXPECTED_TYPES | |
| mode | back to summary |
|---|---|
| private volatile DomainSocketReadMode mode | |
| SUPPORTED_OPTIONS | back to summary |
|---|---|
| private static final Set<ChannelOption<?>> SUPPORTED_OPTIONS | |
| SUPPORTED_OPTIONS_DOMAIN_SOCKET | back to summary |
|---|---|
| private static final Set<ChannelOption<?>> SUPPORTED_OPTIONS_DOMAIN_SOCKET | |
| tcpFastopen | back to summary |
|---|---|
| private volatile boolean tcpFastopen | |
| KQueueSocketChannel | back to summary |
|---|---|
| public KQueueSocketChannel(EventLoop eventLoop) | |
| KQueueSocketChannel | back to summary |
|---|---|
| public KQueueSocketChannel(EventLoop eventLoop, ProtocolFamily protocolFamily) | |
| KQueueSocketChannel | back to summary |
|---|---|
| public KQueueSocketChannel(EventLoop eventLoop, int fd, ProtocolFamily protocolFamily) | |
| KQueueSocketChannel | back to summary |
|---|---|
| private KQueueSocketChannel(EventLoop eventLoop, BsdSocket fd) | |
| KQueueSocketChannel | back to summary |
|---|---|
| pack-priv KQueueSocketChannel(KQueueServerSocketChannel parent, EventLoop eventLoop, BsdSocket fd, SocketAddress remoteAddress) | |
| doConnect0 | back to summary |
|---|---|
| protected boolean doConnect0(SocketAddress remoteAddress, SocketAddress localAddress, Buffer initialData) throws Exception Overrides io.
| |
| doShutdown | back to summary |
|---|---|
| protected void doShutdown(ChannelShutdownDirection direction) throws Exception Implements abstract io. Doc from io. Shutdown one direction of the
| |
| doWriteMultiple | back to summary |
|---|---|
| private void doWriteMultiple(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Attempt to write multiple
| |
| doWriteNow | back to summary |
|---|---|
| protected void doWriteNow(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Implements abstract io. Doc from io. Called in a loop when writes should be performed until this method returns
| |
| doWriteSingle | back to summary |
|---|---|
| private void doWriteSingle(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Attempt to write a single object.
| |
| enableTcpNoDelayIfSupported | back to summary |
|---|---|
| private void enableTcpNoDelayIfSupported() | |
| 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 | |
| getExtendedOption | back to summary |
|---|---|
| protected <T> T getExtendedOption(ChannelOption<T> option) Overrides io. Doc from io. Override to add support for more
| |
| getPeerCredentials | back to summary |
|---|---|
| private PeerCredentials getPeerCredentials() | |
| getReadMode | back to summary |
|---|---|
| private DomainSocketReadMode getReadMode() | |
| getReceiveBufferSize | back to summary |
|---|---|
| private int getReceiveBufferSize() | |
| getSendBufferSize | back to summary |
|---|---|
| private int getSendBufferSize() | |
| getSndLowAt | back to summary |
|---|---|
| private int getSndLowAt() | |
| getSoLinger | back to summary |
|---|---|
| private int getSoLinger() | |
| getTrafficClass | back to summary |
|---|---|
| private int getTrafficClass() | |
| isExtendedOptionSupported | back to summary |
|---|---|
| protected boolean isExtendedOptionSupported(ChannelOption<?> option) Overrides io. Doc from io. Override to add support for more
| |
| isKeepAlive | back to summary |
|---|---|
| private boolean isKeepAlive() | |
| isReuseAddress | back to summary |
|---|---|
| private boolean isReuseAddress() | |
| 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) | |
| isTcpFastOpenConnect | back to summary |
|---|---|
| private boolean isTcpFastOpenConnect() Returns | |
| isTcpNoDelay | back to summary |
|---|---|
| private boolean isTcpNoDelay() | |
| isTcpNoPush | back to summary |
|---|---|
| private boolean isTcpNoPush() | |
| prepareToClose | back to summary |
|---|---|
| protected Future Overrides io. Doc from io. Prepares to close the
| |
| readReady | back to summary |
|---|---|
| pack-priv int readReady(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Implements abstract io.
| |
| readReadyBytes | back to summary |
|---|---|
| private int readReadyBytes(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. | |
| readReadyFd | back to summary |
|---|---|
| private int readReadyFd(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. | |
| setExtendedOption | back to summary |
|---|---|
| protected <T> void setExtendedOption(ChannelOption<T> option, T value) Overrides io. Doc from io. Override to add support for more
| |
| setKeepAlive | back to summary |
|---|---|
| private void setKeepAlive(boolean keepAlive) | |
| setReadMode | back to summary |
|---|---|
| private void setReadMode(DomainSocketReadMode mode) | |
| setReceiveBufferSize | back to summary |
|---|---|
| private void setReceiveBufferSize(int receiveBufferSize) | |
| setReuseAddress | back to summary |
|---|---|
| private void setReuseAddress(boolean reuseAddress) | |
| setSendBufferSize | back to summary |
|---|---|
| private void setSendBufferSize(int sendBufferSize) | |
| setSndLowAt | back to summary |
|---|---|
| private void setSndLowAt(int sndLowAt) | |
| setSoLinger | back to summary |
|---|---|
| private void setSoLinger(int soLinger) | |
| setTcpFastOpenConnect | back to summary |
|---|---|
| private void setTcpFastOpenConnect(boolean fastOpenConnect) Enables client TCP fast open, if available. | |
| setTcpNoDelay | back to summary |
|---|---|
| private void setTcpNoDelay(boolean tcpNoDelay) | |
| setTcpNoPush | back to summary |
|---|---|
| private void setTcpNoPush(boolean tcpNoPush) | |
| setTrafficClass | back to summary |
|---|---|
| private void setTrafficClass(int trafficClass) | |
| supportedOptions | back to summary |
|---|---|
| private static Set | |
| supportedOptionsDomainSocket | back to summary |
|---|---|
| private static Set | |
| writeBytes | back to summary |
|---|---|
| private void writeBytes(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Write bytes form the given
| |
| writeBytesMultiple | back to summary |
|---|---|
| private long writeBytesMultiple(IovArray array) throws IOException Write multiple bytes via
| |
| writeBytesMultiple | back to summary |
|---|---|
| private long writeBytesMultiple(ByteBuffer[] nioBuffers, int nioBufferCnt, long expectedWrittenBytes, long maxBytesPerGatheringWrite) throws IOException Write multiple bytes via
| |
| writeDefaultFileRegion | back to summary |
|---|---|
| private void writeDefaultFileRegion(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Write a
| |
| writeFileRegion | back to summary |
|---|---|
| private void writeFileRegion(AbstractChannel<KQueueServerSocketChannel, SocketAddress, SocketAddress>. Write a
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected BufferAllocator |
| KQueueSocketWritableByteChannel | back to summary |
|---|---|
| pack-priv KQueueSocketWritableByteChannel() | |
| alloc | back to summary |
|---|---|
| protected BufferAllocator alloc() Implements abstract io.
| |