Package org.elasticsearch.transport
Interface TransportChannel
-
- All Known Implementing Classes:
TaskTransportChannel,TcpTransportChannel
public interface TransportChannelA transport channel allows to send a response to a request on the channel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetChannelType()StringgetProfileName()default VersiongetVersion()Returns the version of the other party that this channel will send a response to.voidsendResponse(Exception exception)voidsendResponse(TransportResponse response)
-
-
-
Method Detail
-
getProfileName
String getProfileName()
-
getChannelType
String getChannelType()
-
sendResponse
void sendResponse(TransportResponse response) throws IOException
- Throws:
IOException
-
sendResponse
void sendResponse(Exception exception) throws IOException
- Throws:
IOException
-
getVersion
default Version getVersion()
Returns the version of the other party that this channel will send a response to.
-
-