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