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

    Constructors
    Constructor
    Description
    NioTcpChannel​(boolean isServer, String profile, SocketChannel socketChannel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCloseListener​(org.elasticsearch.action.ActionListener<Void> listener)
     
    void
    addConnectListener​(org.elasticsearch.action.ActionListener<Void> listener)
     
    void
     
    org.elasticsearch.transport.TcpChannel.ChannelStats
     
     
    boolean
     
    void
    sendMessage​(org.elasticsearch.common.bytes.BytesReference reference, org.elasticsearch.action.ActionListener<Void> listener)
     
     

    Methods inherited from class org.elasticsearch.nio.NioSocketChannel

    addConnectListener, getContext, getLocalAddress, getRawChannel, getRemoteAddress, setContext

    Methods inherited from class org.elasticsearch.nio.NioChannel

    addCloseListener, isOpen

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.common.network.CloseableChannel

    isOpen

    Methods inherited from interface org.elasticsearch.transport.TcpChannel

    getLocalAddress, getRemoteAddress
  • Constructor Details

    • NioTcpChannel

      public NioTcpChannel(boolean isServer, String profile, SocketChannel socketChannel)
  • Method Details

    • sendMessage

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

      public boolean isServerChannel()
      Specified by:
      isServerChannel in interface org.elasticsearch.transport.TcpChannel
    • getProfile

      public String getProfile()
      Specified by:
      getProfile in interface org.elasticsearch.transport.TcpChannel
    • addCloseListener

      public void addCloseListener(org.elasticsearch.action.ActionListener<Void> listener)
      Specified by:
      addCloseListener in interface org.elasticsearch.common.network.CloseableChannel
    • addConnectListener

      public void addConnectListener(org.elasticsearch.action.ActionListener<Void> listener)
      Specified by:
      addConnectListener in interface org.elasticsearch.transport.TcpChannel
    • getChannelStats

      public org.elasticsearch.transport.TcpChannel.ChannelStats getChannelStats()
      Specified by:
      getChannelStats in interface org.elasticsearch.transport.TcpChannel
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.common.network.CloseableChannel
      Overrides:
      close in class org.elasticsearch.nio.NioChannel
    • toString

      public String toString()
      Overrides:
      toString in class org.elasticsearch.nio.NioSocketChannel