Package org.elasticsearch.http.netty4
Class Netty4HttpChannel
java.lang.Object
org.elasticsearch.http.netty4.Netty4HttpChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.common.network.CloseableChannel,org.elasticsearch.http.HttpChannel
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(org.elasticsearch.action.ActionListener<Void> listener)voidclose()io.netty.channel.ChannelbooleanisOpen()voidsendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)toString()
-
Method Details
-
sendResponse
public void sendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)- Specified by:
sendResponsein interfaceorg.elasticsearch.http.HttpChannel
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.elasticsearch.http.HttpChannel
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.elasticsearch.http.HttpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceorg.elasticsearch.common.network.CloseableChannel
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.elasticsearch.common.network.CloseableChannel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.common.network.CloseableChannel
-
getNettyChannel
public io.netty.channel.Channel getNettyChannel() -
toString
-