Class NettyTcpChannel

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.elasticsearch.common.lease.Releasable, org.elasticsearch.transport.TcpChannel

    public class NettyTcpChannel
    extends java.lang.Object
    implements org.elasticsearch.transport.TcpChannel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCloseListener​(org.elasticsearch.action.ActionListener<java.lang.Void> listener)  
      void close()  
      java.net.InetSocketAddress getLocalAddress()  
      io.netty.channel.Channel getLowLevelChannel()  
      boolean isOpen()  
      void sendMessage​(org.elasticsearch.common.bytes.BytesReference reference, org.elasticsearch.action.ActionListener<java.lang.Void> listener)  
      void setSoLinger​(int value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.elasticsearch.transport.TcpChannel

    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface org.elasticsearch.common.lease.Releasable
        Specified by:
        close in interface org.elasticsearch.transport.TcpChannel
      • addCloseListener

        public void addCloseListener​(org.elasticsearch.action.ActionListener<java.lang.Void> listener)
        Specified by:
        addCloseListener in interface org.elasticsearch.transport.TcpChannel
      • setSoLinger

        public void setSoLinger​(int value)
        Specified by:
        setSoLinger in interface org.elasticsearch.transport.TcpChannel
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface org.elasticsearch.transport.TcpChannel
      • getLocalAddress

        public java.net.InetSocketAddress getLocalAddress()
        Specified by:
        getLocalAddress in interface org.elasticsearch.transport.TcpChannel
      • sendMessage

        public void sendMessage​(org.elasticsearch.common.bytes.BytesReference reference,
                                org.elasticsearch.action.ActionListener<java.lang.Void> listener)
        Specified by:
        sendMessage in interface org.elasticsearch.transport.TcpChannel
      • getLowLevelChannel

        public io.netty.channel.Channel getLowLevelChannel()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object