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
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault VersionReturns the version of the other party that this channel will send a response to.static voidsendErrorResponse(TransportChannel channel, String actionName, TransportRequest request, Exception e)A helper method to send an exception and handle and log a subsequent exceptionvoidsendResponse(Exception exception)voidsendResponse(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
-