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.
-
Method Summary
Modifier and Type Method Description java.lang.String
getChannelType()
java.lang.String
getProfileName()
default Version
getVersion()
Returns the version of the other party that this channel will send a response to.void
sendResponse(java.lang.Exception exception)
void
sendResponse(TransportResponse response)
-
Method Details
-
getProfileName
java.lang.String getProfileName() -
getChannelType
java.lang.String getChannelType() -
sendResponse
- Throws:
java.io.IOException
-
sendResponse
void sendResponse(java.lang.Exception exception) throws java.io.IOException- Throws:
java.io.IOException
-
getVersion
Returns the version of the other party that this channel will send a response to.
-