Class RefCountAwareThreadedActionListener<Response extends RefCounted>

java.lang.Object
org.elasticsearch.action.support.AbstractThreadedActionListener<Response>
org.elasticsearch.action.support.RefCountAwareThreadedActionListener<Response>
All Implemented Interfaces:
ActionListener<Response>

public final class RefCountAwareThreadedActionListener<Response extends RefCounted> extends AbstractThreadedActionListener<Response>
Same as ThreadedActionListener but for RefCounted types. Makes sure to increment ref-count by one before forking to another thread and decrementing after the forked task completes.
  • Constructor Details

  • Method Details

    • onResponse

      public void onResponse(Response response)
      Description copied from interface: ActionListener
      Handle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.