Package org.elasticsearch.transport.nio
Class NioTcpServerChannel
java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioServerSocketChannel
org.elasticsearch.transport.nio.NioTcpServerChannel
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,CloseableChannel,TcpServerChannel
public class NioTcpServerChannel extends NioServerSocketChannel implements TcpServerChannel
This is an implementation of
NioServerSocketChannel that adheres to the TcpServerChannel
interface. As it is a server socket, setting SO_LINGER and sending messages is not supported.-
Constructor Summary
Constructors Constructor Description NioTcpServerChannel(java.nio.channels.ServerSocketChannel socketChannel) -
Method Summary
Modifier and Type Method Description voidaddCloseListener(ActionListener<java.lang.Void> listener)voidclose()java.lang.StringtoString()Methods inherited from class org.elasticsearch.nio.NioServerSocketChannel
addBindListener, getContext, getLocalAddress, getRawChannel, setContext
-
Constructor Details
-
NioTcpServerChannel
public NioTcpServerChannel(java.nio.channels.ServerSocketChannel socketChannel)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceCloseableChannel- Overrides:
closein classNioChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceCloseableChannel
-
toString
public java.lang.String toString()- Overrides:
toStringin classNioServerSocketChannel
-