SocketChannel implementation that uses linux EPOLL Edge-Triggered Mode for
maximal performance.
SocketChannel and UnixChannel,
EpollSocketChannel allows the following options in the option map:
| 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 | |
| private volatile Collection |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | |
| pack-priv | EpollSocketChannel(EpollServerSocketChannel parent, EventLoop eventLoop, LinuxSocket fd, SocketAddress remoteAddress)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doConnect0(SocketAddress remote, Buffer initialData)
Overrides io. |
| protected void | doShutdown(ChannelShutdownDirection
the direction to shut down. direction)Implements abstract io. Channel.
|
| private void | Returns: if we should continue with writing more messages.the writeSinkWriteSink used to track write results.Attempt to write multiple |
| protected void | doWriteNow(AbstractChannel<EpollServerSocketChannel, 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 | Returns: if we should continue with writing more messages.the writeSinkWriteSink used to track write results.Attempt to write a single object. |
| private AbstractEpollChannel. | |
| protected AbstractEpollChannel. | epollInReady(AbstractChannel<EpollServerSocketChannel, SocketAddress, SocketAddress>.
Implements abstract io. |
| private AbstractEpollChannel. | |
| 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 EpollTcpInfo | |
| private int | |
| private int | |
| private int | |
| private long | |
| private int | |
| private int | |
| protected boolean | isExtendedOptionSupported(ChannelOption<?>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| public boolean | |
| private boolean | |
| private static 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 | |
| private static WriteHandleFactory | |
| protected Future | prepareToClose()
Overrides io. Channel.
|
| protected <T> void | setExtendedOption(ChannelOption<T>
the option, T value)ChannelOption.Overrides io. ChannelOptions.
|
| private void | setIpTransparent(boolean transparent)
If |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | setTcpNotSentLowAt(long
is a uint32_t tcpNotSentLowAt)Set the |
| private void | |
| private void | |
| private void | |
| private static Set | |
| private static Set | |
| private void | Returns: if we should continue with writing more messages.the writeSinkWriteSink used to track write results.Write bytes form the given |
| private long | Returns: if we should continue with writing more messages.The array which contains the content to write. array)Write multiple bytes via |
| private long | Returns: write result.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 | Returns: if we should continue with writing more messages.the writeSinkWriteSink used to track write results.Write a |
| private void | Returns: if we should continue with writing more messages.the writeSinkWriteSink used to track write results.Write a |