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:
Closeable,AutoCloseable,CloseableChannel,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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(ActionListener<Void> listener) voidclose()toString()Methods inherited from class org.elasticsearch.nio.NioServerSocketChannel
addBindListener, getContext, getLocalAddress, getRawChannel, setContextMethods inherited from class org.elasticsearch.nio.NioChannel
addCloseListener, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.network.CloseableChannel
isOpenMethods inherited from interface org.elasticsearch.transport.TcpServerChannel
getLocalAddress
-
Constructor Details
-
NioTcpServerChannel
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableChannel- Overrides:
closein classNioChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceCloseableChannel
-
toString
- Overrides:
toStringin classNioServerSocketChannel
-