Package org.elasticsearch.http.netty4
Class Netty4HttpChannel
java.lang.Object
org.elasticsearch.http.netty4.Netty4HttpChannel
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.elasticsearch.common.network.CloseableChannel,org.elasticsearch.http.HttpChannel
public class Netty4HttpChannel
extends java.lang.Object
implements org.elasticsearch.http.HttpChannel
-
Method Summary
Modifier and Type Method Description voidaddCloseListener(org.elasticsearch.action.ActionListener<java.lang.Void> listener)voidclose()java.net.InetSocketAddressgetLocalAddress()io.netty.channel.ChannelgetNettyChannel()java.net.InetSocketAddressgetRemoteAddress()booleanisOpen()voidsendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<java.lang.Void> listener)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
sendResponse
public void sendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<java.lang.Void> listener)- Specified by:
sendResponsein interfaceorg.elasticsearch.http.HttpChannel
-
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()- Specified by:
getLocalAddressin interfaceorg.elasticsearch.http.HttpChannel
-
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()- Specified by:
getRemoteAddressin interfaceorg.elasticsearch.http.HttpChannel
-
addCloseListener
public void addCloseListener(org.elasticsearch.action.ActionListener<java.lang.Void> listener)- 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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceorg.elasticsearch.common.network.CloseableChannel
-
getNettyChannel
public io.netty.channel.Channel getNettyChannel() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-