Package org.elasticsearch.http.nio
Class NioHttpChannel
java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioSocketChannel
org.elasticsearch.http.nio.NioHttpChannel
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,CloseableChannel,HttpChannel
public class NioHttpChannel extends NioSocketChannel implements HttpChannel
-
Constructor Summary
Constructors Constructor Description NioHttpChannel(java.nio.channels.SocketChannel socketChannel) -
Method Summary
Modifier and Type Method Description voidaddCloseListener(ActionListener<java.lang.Void> listener)voidsendResponse(HttpResponse response, ActionListener<java.lang.Void> listener)java.lang.StringtoString()Methods inherited from class org.elasticsearch.nio.NioSocketChannel
addConnectListener, getContext, getLocalAddress, getRawChannel, getRemoteAddress, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.http.HttpChannel
getLocalAddress, getRemoteAddress
-
Constructor Details
-
NioHttpChannel
public NioHttpChannel(java.nio.channels.SocketChannel socketChannel)
-
-
Method Details
-
sendResponse
- Specified by:
sendResponsein interfaceHttpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceCloseableChannel
-
toString
public java.lang.String toString()- Overrides:
toStringin classNioSocketChannel
-