Package org.opensearch.transport
Class TaskTransportChannel
java.lang.Object
org.opensearch.transport.TaskTransportChannel
- All Implemented Interfaces:
TransportChannel
Transport channel for tasks
- Opensearch.internal:
-
Field Summary
Fields inherited from interface org.opensearch.transport.TransportChannel
logger
-
Method Summary
Modifier and TypeMethodDescription<T> Optional
<T> Returns the contextual property associated with this specific transport channel (the implementation of how such properties are managed depends on the particular transport engine).org.opensearch.Version
Returns the version of the other party that this channel will send a response to.void
sendResponse
(Exception exception) void
sendResponse
(org.opensearch.core.transport.TransportResponse response)
-
Method Details
-
getProfileName
- Specified by:
getProfileName
in interfaceTransportChannel
-
getChannelType
- Specified by:
getChannelType
in interfaceTransportChannel
-
sendResponse
public void sendResponse(org.opensearch.core.transport.TransportResponse response) throws IOException - Specified by:
sendResponse
in interfaceTransportChannel
- Throws:
IOException
-
sendResponse
- Specified by:
sendResponse
in interfaceTransportChannel
- Throws:
IOException
-
getVersion
public org.opensearch.Version getVersion()Description copied from interface:TransportChannel
Returns the version of the other party that this channel will send a response to.- Specified by:
getVersion
in interfaceTransportChannel
-
getChannel
-
get
Description copied from interface:TransportChannel
Returns the contextual property associated with this specific transport channel (the implementation of how such properties are managed depends on the particular transport engine).- Specified by:
get
in interfaceTransportChannel
- Parameters:
name
- the name of the propertyclazz
- the expected type of the property- Returns:
- the value of the property.
-