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,org.elasticsearch.common.network.CloseableChannel,org.elasticsearch.transport.TcpChannel
public class NioTcpChannel
extends org.elasticsearch.nio.NioSocketChannel
implements org.elasticsearch.transport.TcpChannel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.transport.TcpChannel
org.elasticsearch.transport.TcpChannel.ChannelStats -
Constructor Summary
ConstructorsConstructorDescriptionNioTcpChannel(boolean isServer, String profile, SocketChannel socketChannel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(org.elasticsearch.action.ActionListener<Void> listener)voidaddConnectListener(org.elasticsearch.action.ActionListener<Void> listener)voidclose()org.elasticsearch.transport.TcpChannel.ChannelStatsbooleanvoidsendMessage(org.elasticsearch.common.bytes.BytesReference reference, org.elasticsearch.action.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
public void sendMessage(org.elasticsearch.common.bytes.BytesReference reference, org.elasticsearch.action.ActionListener<Void> listener)- Specified by:
sendMessagein interfaceorg.elasticsearch.transport.TcpChannel
-
isServerChannel
public boolean isServerChannel()- Specified by:
isServerChannelin interfaceorg.elasticsearch.transport.TcpChannel
-
getProfile
- Specified by:
getProfilein interfaceorg.elasticsearch.transport.TcpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceorg.elasticsearch.common.network.CloseableChannel
-
addConnectListener
- Specified by:
addConnectListenerin interfaceorg.elasticsearch.transport.TcpChannel
-
getChannelStats
public org.elasticsearch.transport.TcpChannel.ChannelStats getChannelStats()- Specified by:
getChannelStatsin interfaceorg.elasticsearch.transport.TcpChannel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.common.network.CloseableChannel- Overrides:
closein classorg.elasticsearch.nio.NioChannel
-
toString
- Overrides:
toStringin classorg.elasticsearch.nio.NioSocketChannel
-