Class LatchedActionListener<T>

java.lang.Object
org.elasticsearch.action.LatchedActionListener<T>
All Implemented Interfaces:
ActionListener<T>

public class LatchedActionListener<T> extends Object implements ActionListener<T>
An action listener that allows passing in a CountDownLatch that will be counted down after onResponse or onFailure is called
  • Constructor Details

  • Method Details

    • onResponse

      public void onResponse(T t)
      Description copied from interface: ActionListener
      Complete this listener with a successful (or at least, non-exceptional) response.
      Specified by:
      onResponse in interface ActionListener<T>
    • onFailure

      public void onFailure(Exception e)
      Description copied from interface: ActionListener
      Complete this listener with an exceptional response.
      Specified by:
      onFailure in interface ActionListener<T>