Package org.elasticsearch.rest.action
Class DispatchingRestToXContentListener<Response extends StatusToXContentObject>
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.DispatchingRestToXContentListener<Response>
- All Implemented Interfaces:
ActionListener<Response>
public class DispatchingRestToXContentListener<Response extends StatusToXContentObject>
extends RestActionListener<Response>
Response listener for REST requests which dispatches the serialization of the response off of the thread on which the response was
received, since that thread is often a transport thread and XContent serialization might be expensive.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.ActionListener
ActionListener.Delegating<Response,DelegateResponse>, ActionListener.DelegatingActionListener<T>, ActionListener.DelegatingFailureActionListener<T,R>, ActionListener.MappedActionListener<Response,MappedResponse>, ActionListener.RunAfterActionListener<T>, ActionListener.RunBeforeActionListener<T>
-
Field Summary
Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.common.xcontent.ToXContent.Params
protected void
processResponse(Response response)
Methods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponse
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateResponse, map
-
Constructor Details
-
DispatchingRestToXContentListener
-
-
Method Details
-
getParams
protected org.elasticsearch.common.xcontent.ToXContent.Params getParams() -
processResponse
- Specified by:
processResponse
in classRestActionListener<Response extends StatusToXContentObject>
-