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:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(org.elasticsearch.action.ActionListener<Void> listener)voidsendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)toString()Methods inherited from class org.elasticsearch.nio.NioSocketChannel
addConnectListener, getContext, getLocalAddress, getRawChannel, getRemoteAddress, setContextMethods inherited from class org.elasticsearch.nio.NioChannel
addCloseListener, close, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.network.CloseableChannel
close, isOpenMethods inherited from interface org.elasticsearch.http.HttpChannel
getLocalAddress, getRemoteAddress
-
Constructor Details
-
NioHttpChannel
-
-
Method Details
-
sendResponse
public void sendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)- Specified by:
sendResponsein interfaceorg.elasticsearch.http.HttpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceorg.elasticsearch.common.network.CloseableChannel
-
toString
- Overrides:
toStringin classorg.elasticsearch.nio.NioSocketChannel
-