org.elasticsearch.transport.netty
Class NettyTransportChannel

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

public class NettyTransportChannel
extends Object
implements TransportChannel


Constructor Summary
NettyTransportChannel(NettyTransport transport, String action, org.jboss.netty.channel.Channel channel, long requestId)
           
 
Method Summary
 String action()
           
 void sendResponse(Streamable message)
           
 void sendResponse(Streamable message, TransportResponseOptions options)
           
 void sendResponse(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,
                             String action,
                             org.jboss.netty.channel.Channel channel,
                             long requestId)
Method Detail

action

public String action()
Specified by:
action in interface TransportChannel

sendResponse

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

sendResponse

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

sendResponse

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


Copyright © 2009-2012. All Rights Reserved.