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
All Methods Instance Methods Abstract Methods Default Methods 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)
void
sendResponse(TransportResponse response, TransportResponseOptions options)
-
-
-
Method Detail
-
getProfileName
java.lang.String getProfileName()
-
getChannelType
java.lang.String getChannelType()
-
sendResponse
void sendResponse(TransportResponse response) throws java.io.IOException
- Throws:
java.io.IOException
-
sendResponse
void sendResponse(TransportResponse response, TransportResponseOptions options) throws java.io.IOException
- Throws:
java.io.IOException
-
sendResponse
void sendResponse(java.lang.Exception exception) throws java.io.IOException
- Throws:
java.io.IOException
-
getVersion
default Version getVersion()
Returns the version of the other party that this channel will send a response to.
-
-