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
ConstructorDescriptionThreadedActionListener
(Executor executor, boolean forceExecution, ActionListener<Response> delegate) ThreadedActionListener
(Executor executor, ActionListener<Response> delegate) -
Method Summary
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, delegateResponse, map, safeMap
-
Constructor Details
-
ThreadedActionListener
-
ThreadedActionListener
public ThreadedActionListener(Executor executor, boolean forceExecution, ActionListener<Response> delegate)
-
-
Method Details
-
onResponse
Description copied from interface:ActionListener
Handle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.
-