java.lang.Object
org.elasticsearch.tasks.LoggingTaskListener<Response>
- All Implemented Interfaces:
ActionListener<Response>
An
ActionListener that just logs the task and its response at the info level. Used when we need a listener but aren't returning
the result to the user.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidComplete this listener with an exceptional response.voidonResponse(Response response) 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
-
LoggingTaskListener
-
-
Method Details
-
onResponse
Description copied from interface:ActionListenerComplete this listener with a successful (or at least, non-exceptional) response.- Specified by:
onResponsein interfaceActionListener<Response>
-
onFailure
Description copied from interface:ActionListenerComplete this listener with an exceptional response.- Specified by:
onFailurein interfaceActionListener<Response>
-