Class NioHttpChannel

java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioSocketChannel
org.elasticsearch.http.nio.NioHttpChannel
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.common.network.CloseableChannel, org.elasticsearch.http.HttpChannel

public class NioHttpChannel extends org.elasticsearch.nio.NioSocketChannel implements org.elasticsearch.http.HttpChannel
  • Constructor Summary

    Constructors
    Constructor
    Description
    NioHttpChannel​(SocketChannel socketChannel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCloseListener​(org.elasticsearch.action.ActionListener<Void> listener)
     
    void
    sendResponse​(org.elasticsearch.http.HttpResponse response, 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, close, 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

    close, isOpen

    Methods inherited from interface org.elasticsearch.http.HttpChannel

    getLocalAddress, getRemoteAddress
  • Constructor Details

    • NioHttpChannel

      public NioHttpChannel(SocketChannel socketChannel)
  • Method Details

    • sendResponse

      public void sendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)
      Specified by:
      sendResponse in interface org.elasticsearch.http.HttpChannel
    • 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.NioSocketChannel