Class NioTcpServerChannel

java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioServerSocketChannel
org.elasticsearch.transport.nio.NioTcpServerChannel
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.common.network.CloseableChannel, org.elasticsearch.transport.TcpServerChannel

public class NioTcpServerChannel extends org.elasticsearch.nio.NioServerSocketChannel implements org.elasticsearch.transport.TcpServerChannel
This is an implementation of NioServerSocketChannel that adheres to the TcpServerChannel interface. As it is a server socket, setting SO_LINGER and sending messages is not supported.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCloseListener​(org.elasticsearch.action.ActionListener<Void> listener)
     
    void
     
     

    Methods inherited from class org.elasticsearch.nio.NioServerSocketChannel

    addBindListener, getContext, getLocalAddress, getRawChannel, 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.TcpServerChannel

    getLocalAddress
  • Constructor Details

  • Method Details

    • 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
    • addCloseListener

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

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