Class AbstractThreadedActionListener<Response>

java.lang.Object
org.elasticsearch.action.support.AbstractThreadedActionListener<Response>
All Implemented Interfaces:
ActionListener<Response>
Direct Known Subclasses:
RefCountAwareThreadedActionListener, ThreadedActionListener

public abstract class AbstractThreadedActionListener<Response> extends Object implements ActionListener<Response>
Base class for action listeners that wrap another action listener and dispatch its completion to an executor.
  • Field Details

    • executor

      protected final Executor executor
    • delegate

      protected final ActionListener<Response> delegate
    • forceExecution

      protected final boolean forceExecution
  • Constructor Details

    • AbstractThreadedActionListener

      protected AbstractThreadedActionListener(Executor executor, boolean forceExecution, ActionListener<Response> delegate)
  • Method Details