public final class ThreadedActionListener<Response> extends Object implements ActionListener<Response>
Modifier and Type | Class and Description |
---|---|
static class |
ThreadedActionListener.Wrapper
Wrapper that can be used to automatically wrap a listener in a threaded listener if needed.
|
Constructor and Description |
---|
ThreadedActionListener(ESLogger logger,
ThreadPool threadPool,
String executor,
ActionListener<Response> listener) |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Throwable e)
A failure handler.
|
void |
onResponse(Response response)
A response handler.
|
public ThreadedActionListener(ESLogger logger, ThreadPool threadPool, String executor, ActionListener<Response> listener)
public void onResponse(Response response)
ActionListener
onResponse
in interface ActionListener<Response>
public void onFailure(Throwable e)
ActionListener
onFailure
in interface ActionListener<Response>
Copyright © 2009–2016. All rights reserved.