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
      Complete this listener with a successful (or at least, non-exceptional) response.