org.elasticsearch.transport.netty
Class NettyTransportChannel

java.lang.Object
  extended by org.elasticsearch.transport.netty.NettyTransportChannel
All Implemented Interfaces:
TransportChannel

public class NettyTransportChannel
extends java.lang.Object
implements TransportChannel


Constructor Summary
NettyTransportChannel(NettyTransport transport, java.lang.String action, org.elasticsearch.common.netty.channel.Channel channel, long requestId)
           
 
Method Summary
 java.lang.String action()
           
 void sendResponse(Streamable message)
           
 void sendResponse(Streamable message, TransportResponseOptions options)
           
 void sendResponse(java.lang.Throwable error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyTransportChannel

public NettyTransportChannel(NettyTransport transport,
                             java.lang.String action,
                             org.elasticsearch.common.netty.channel.Channel channel,
                             long requestId)
Method Detail

action

public java.lang.String action()
Specified by:
action in interface TransportChannel

sendResponse

public void sendResponse(Streamable message)
                  throws java.io.IOException
Specified by:
sendResponse in interface TransportChannel
Throws:
java.io.IOException

sendResponse

public void sendResponse(Streamable message,
                         TransportResponseOptions options)
                  throws java.io.IOException
Specified by:
sendResponse in interface TransportChannel
Throws:
java.io.IOException

sendResponse

public void sendResponse(java.lang.Throwable error)
                  throws java.io.IOException
Specified by:
sendResponse in interface TransportChannel
Throws:
java.io.IOException