Package org.elasticsearch.transport
Interface TransportResponseHandler<T extends TransportResponse>
-
- All Superinterfaces:
Writeable.Reader<T>
- All Known Implementing Classes:
ActionListenerResponseHandler
,EmptyTransportResponseHandler
,FutureTransportResponseHandler
,PlainTransportFuture
,TransportChannelResponseHandler
,TransportService.ContextRestoreResponseHandler
public interface TransportResponseHandler<T extends TransportResponse> extends Writeable.Reader<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.lang.String
executor()
void
handleException(TransportException exp)
void
handleResponse(T response)
default T
newInstance()
Deprecated.Implementread(StreamInput)
instead.default T
read(StreamInput in)
deserializes a new instance of the return type from the stream.
-
-
-
Method Detail
-
newInstance
@Deprecated default T newInstance()
Deprecated.Implementread(StreamInput)
instead.
-
read
default T read(StreamInput in) throws java.io.IOException
deserializes a new instance of the return type from the stream. called by the infra when de-serializing the response.- Specified by:
read
in interfaceWriteable.Reader<T extends TransportResponse>
- Parameters:
in
- Input to read the value from- Returns:
- the deserialized response.
- Throws:
java.io.IOException
-
handleResponse
void handleResponse(T response)
-
handleException
void handleException(TransportException exp)
-
executor
java.lang.String executor()
-
-