Class Netty4TcpChannel
- java.lang.Object
-
- org.elasticsearch.transport.netty4.Netty4TcpChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,CloseableChannel,TcpChannel
public class Netty4TcpChannel extends java.lang.Object implements TcpChannel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.transport.TcpChannel
TcpChannel.ChannelStats
-
-
Method Summary
Modifier and Type Method Description voidaddCloseListener(ActionListener<java.lang.Void> listener)voidaddConnectListener(ActionListener<java.lang.Void> listener)voidclose()TcpChannel.ChannelStatsgetChannelStats()java.net.InetSocketAddressgetLocalAddress()io.netty.channel.ChannelgetLowLevelChannel()java.lang.StringgetProfile()java.net.InetSocketAddressgetRemoteAddress()booleanisOpen()booleanisServerChannel()voidsendMessage(BytesReference reference, ActionListener<java.lang.Void> listener)java.lang.StringtoString()
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceCloseableChannel
-
isServerChannel
public boolean isServerChannel()
- Specified by:
isServerChannelin interfaceTcpChannel
-
getProfile
public java.lang.String getProfile()
- Specified by:
getProfilein interfaceTcpChannel
-
addCloseListener
public void addCloseListener(ActionListener<java.lang.Void> listener)
- Specified by:
addCloseListenerin interfaceCloseableChannel
-
addConnectListener
public void addConnectListener(ActionListener<java.lang.Void> listener)
- Specified by:
addConnectListenerin interfaceTcpChannel
-
getChannelStats
public TcpChannel.ChannelStats getChannelStats()
- Specified by:
getChannelStatsin interfaceTcpChannel
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceCloseableChannel
-
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddressin interfaceTcpChannel
-
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddressin interfaceTcpChannel
-
sendMessage
public void sendMessage(BytesReference reference, ActionListener<java.lang.Void> listener)
- Specified by:
sendMessagein interfaceTcpChannel
-
getLowLevelChannel
public io.netty.channel.Channel getLowLevelChannel()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-