Package org.elasticsearch.action.support
Class ThreadedActionListener.Wrapper
java.lang.Object
org.elasticsearch.action.support.ThreadedActionListener.Wrapper
- Enclosing class:
- ThreadedActionListener<Response>
public static class ThreadedActionListener.Wrapper
extends java.lang.Object
Wrapper that can be used to automatically wrap a listener in a threaded listener if needed.
-
Constructor Summary
Constructors Constructor Description Wrapper(org.apache.logging.log4j.Logger logger, Settings settings, ThreadPool threadPool)
-
Method Summary
Modifier and Type Method Description <Response> ActionListener<Response>
wrap(ActionListener<Response> listener)