Package org.elasticsearch.transport.nio
Class NioTcpChannel
java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioSocketChannel
org.elasticsearch.transport.nio.NioTcpChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,CloseableChannel,TcpChannel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.transport.TcpChannel
TcpChannel.ChannelStats -
Constructor Summary
ConstructorsConstructorDescriptionNioTcpChannel(boolean isServer, String profile, SocketChannel socketChannel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(ActionListener<Void> listener) voidaddConnectListener(ActionListener<Void> listener) voidclose()booleanvoidsendMessage(BytesReference reference, ActionListener<Void> listener) toString()Methods inherited from class org.elasticsearch.nio.NioSocketChannel
addConnectListener, getContext, getLocalAddress, getRawChannel, getRemoteAddress, 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.TcpChannel
getLocalAddress, getRemoteAddress
-
Constructor Details
-
NioTcpChannel
-
-
Method Details
-
sendMessage
- Specified by:
sendMessagein interfaceTcpChannel
-
isServerChannel
public boolean isServerChannel()- Specified by:
isServerChannelin interfaceTcpChannel
-
getProfile
- Specified by:
getProfilein interfaceTcpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceCloseableChannel
-
addConnectListener
- Specified by:
addConnectListenerin interfaceTcpChannel
-
getChannelStats
- Specified by:
getChannelStatsin interfaceTcpChannel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableChannel- Overrides:
closein classNioChannel
-
toString
- Overrides:
toStringin classNioSocketChannel
-