Package org.elasticsearch.transport
Class TaskTransportChannel
- java.lang.Object
-
- org.elasticsearch.transport.TaskTransportChannel
-
- All Implemented Interfaces:
TransportChannel
public class TaskTransportChannel extends java.lang.Object implements TransportChannel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportChannel
getChannel()
java.lang.String
getChannelType()
java.lang.String
getProfileName()
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
public java.lang.String getProfileName()
- Specified by:
getProfileName
in interfaceTransportChannel
-
getChannelType
public java.lang.String getChannelType()
- Specified by:
getChannelType
in interfaceTransportChannel
-
sendResponse
public void sendResponse(TransportResponse response) throws java.io.IOException
- Specified by:
sendResponse
in interfaceTransportChannel
- Throws:
java.io.IOException
-
sendResponse
public void sendResponse(TransportResponse response, TransportResponseOptions options) throws java.io.IOException
- Specified by:
sendResponse
in interfaceTransportChannel
- Throws:
java.io.IOException
-
sendResponse
public void sendResponse(java.lang.Exception exception) throws java.io.IOException
- Specified by:
sendResponse
in interfaceTransportChannel
- Throws:
java.io.IOException
-
getVersion
public 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
public TransportChannel getChannel()
-
-