public final class SearchExecutionStatsCollector extends java.lang.Object implements ActionListener<SearchPhaseResult>
ResponseCollectorService
.Modifier and Type | Method and Description |
---|---|
static java.util.function.BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> |
makeWrapper(ResponseCollectorService service) |
void |
onFailure(java.lang.Exception e)
A failure caused by an exception at some phase of the task.
|
void |
onResponse(SearchPhaseResult response)
Handle action response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFailure, onResponse, toBiConsumer, wrap, wrap
public static java.util.function.BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> makeWrapper(ResponseCollectorService service)
public void onResponse(SearchPhaseResult response)
ActionListener
onResponse
in interface ActionListener<SearchPhaseResult>
public void onFailure(java.lang.Exception e)
ActionListener
onFailure
in interface ActionListener<SearchPhaseResult>