Class CountDownActionListener

java.lang.Object
org.elasticsearch.action.DelegatingActionListener<Void,Void>
org.elasticsearch.action.support.CountDownActionListener
All Implemented Interfaces:
ActionListener<Void>

public final class CountDownActionListener extends DelegatingActionListener<Void,Void>
Wraps another listener and adds a counter -- each invocation of this listener will decrement the counter, and when the counter has been exhausted the final invocation of this listener will delegate to the wrapped listener. Similar to GroupedActionListener, but for the cases where tracking individual results is not useful.
  • Constructor Details

    • CountDownActionListener

      public CountDownActionListener(int groupSize, ActionListener<Void> delegate)
      Creates a new listener
      Parameters:
      groupSize - the group size
      delegate - the delegate listener
  • Method Details