org.elasticsearch.transport
Interface TransportChannel

All Known Implementing Classes:
LocalTransportChannel, NettyTransportChannel

public interface TransportChannel

A transport channel allows to send a response to a request on the channel.


Method Summary
 java.lang.String action()
           
 void sendResponse(Streamable message)
           
 void sendResponse(Streamable message, TransportResponseOptions options)
           
 void sendResponse(java.lang.Throwable error)
           
 

Method Detail

action

java.lang.String action()

sendResponse

void sendResponse(Streamable message)
                  throws java.io.IOException
Throws:
java.io.IOException

sendResponse

void sendResponse(Streamable message,
                  TransportResponseOptions options)
                  throws java.io.IOException
Throws:
java.io.IOException

sendResponse

void sendResponse(java.lang.Throwable error)
                  throws java.io.IOException
Throws:
java.io.IOException