Class DispatchingRestToXContentListener<Response extends org.elasticsearch.xcontent.ToXContentObject>

java.lang.Object
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.DispatchingRestToXContentListener<Response>
All Implemented Interfaces:
ActionListener<Response>

public class DispatchingRestToXContentListener<Response extends org.elasticsearch.xcontent.ToXContentObject> 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.
  • Constructor Details

  • Method Details

    • getParams

      protected org.elasticsearch.xcontent.ToXContent.Params getParams()
    • processResponse

      protected void processResponse(Response response)
      Specified by:
      processResponse in class RestActionListener<Response extends org.elasticsearch.xcontent.ToXContentObject>