Module org.elasticsearch.server
Package org.elasticsearch.action.support
Class ThreadedActionListener<Response>
java.lang.Object
org.elasticsearch.action.support.AbstractThreadedActionListener<Response>
org.elasticsearch.action.support.ThreadedActionListener<Response>
- All Implemented Interfaces:
ActionListener<Response>
public final class ThreadedActionListener<Response>
extends AbstractThreadedActionListener<Response>
An action listener that wraps another action listener and dispatches its completion to an executor.
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.AbstractThreadedActionListener
delegate, executor, forceExecution
-
Constructor Summary
ConstructorsConstructorDescriptionThreadedActionListener
(Executor executor, boolean forceExecution, ActionListener<Response> delegate) ThreadedActionListener
(Executor executor, ActionListener<Response> delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onResponse
(Response response) Complete this listener with a successful (or at least, non-exceptional) response.Methods inherited from class org.elasticsearch.action.support.AbstractThreadedActionListener
onFailure, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateFailureAndWrap, delegateFailureIgnoreResponseAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
ThreadedActionListener
-
ThreadedActionListener
public ThreadedActionListener(Executor executor, boolean forceExecution, ActionListener<Response> delegate)
-
-
Method Details
-
onResponse
Description copied from interface:ActionListener
Complete this listener with a successful (or at least, non-exceptional) response.
-