java.lang.Object
org.elasticsearch.action.LatchedActionListener<T>
- All Implemented Interfaces:
ActionListener<T>
An action listener that allows passing in a
CountDownLatch that
will be counted down after onResponse or onFailure is called-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidComplete this listener with an exceptional response.voidonResponse(T t) Complete this listener with a successful (or at least, non-exceptional) response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateFailureAndWrap, delegateFailureIgnoreResponseAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
LatchedActionListener
-
-
Method Details
-
onResponse
Description copied from interface:ActionListenerComplete this listener with a successful (or at least, non-exceptional) response.- Specified by:
onResponsein interfaceActionListener<T>
-
onFailure
Description copied from interface:ActionListenerComplete this listener with an exceptional response.- Specified by:
onFailurein interfaceActionListener<T>
-