| Modifier and Type | Class and Description |
|---|---|
| protected class | |
| public static class | |
| public static class | Nio2Endpoint.
SendfileData class. |
| protected class | Nio2Endpoint.
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool. |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private static ThreadLocal | inlineCompletion
Allows detecting if a completion handler completes inline. |
| private static final Log | |
| private static final Log | |
| private static final Log | |
| private SynchronizedStack | nioChannels
Bytebuffer cache, each channel holds a set of buffers (two, except for SSL holds four) |
| private long | |
| private SocketAddress | |
| private volatile AsynchronousServerSocketChannel | serverSock
Server socket "pointer". |
| private AsynchronousChannelGroup | threadGroup
Thread group associated with the server socket. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind()
Implements abstract org. Initialize the endpoint. |
| protected SocketProcessorBase | createSocketProcessor(SocketWrapperBase<Nio2Channel> socketWrapper, SocketEvent event)
Implements abstract org.
|
| protected void | destroySocket(AsynchronousSocketChannel
The newly accepted socket socket)Implements abstract org. Close the socket. |
| protected void | doCloseServerSocket()
Implements abstract org. Actually close the server socket but don't perform any other clean-up. |
| public static void | |
| public int | |
| protected Log | |
| protected Log | |
| protected SynchronizedStack | |
| protected NetworkChannel | getServerSocket()
Implements abstract org.
|
| public static boolean | |
| public void | resume()
Overrides org. Resume the endpoint, which will make it start accepting new connections again. |
| protected AsynchronousSocketChannel | serverSocketAccept()
Implements abstract org.
|
| protected boolean | Returns: true if the socket was correctly configured
and processing may continue, false if the socket needs to be
close immediatelyThe socket channel socket)Implements abstract org. Process the specified connection. |
| public void | |
| protected void | |
| public static void | |
| public void | startInternal()
Implements abstract org. Start the NIO2 endpoint, creating acceptor. |
| public void | stopInternal()
Implements abstract org. Stop the endpoint. |
| public void | unbind()
Overrides org. Deallocate NIO memory pools, and close server socket. |