Package org.elasticsearch.transport
Interface TransportChannel
- All Known Implementing Classes:
TaskTransportChannel
,TcpTransportChannel
public interface TransportChannel
A transport channel allows to send a response to a request on the channel.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Version
Returns the version of the other party that this channel will send a response to.static void
sendErrorResponse(TransportChannel channel, String actionName, TransportRequest request, Exception e)
A helper method to send an exception and handle and log a subsequent exceptionvoid
sendResponse(Exception exception)
void
sendResponse(TransportResponse response)
-
Field Details
-
logger
static final org.apache.logging.log4j.Logger logger
-
-
Method Details
-
getProfileName
String getProfileName() -
getChannelType
String getChannelType() -
sendResponse
- Throws:
IOException
-
sendResponse
- Throws:
IOException
-
getVersion
Returns the version of the other party that this channel will send a response to. -
sendErrorResponse
static void sendErrorResponse(TransportChannel channel, String actionName, TransportRequest request, Exception e)A helper method to send an exception and handle and log a subsequent exception
-