public abstract class AbstractListenableActionFuture<T,L> extends AdapterActionFuture<T,L> implements ListenableActionFuture<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractListenableActionFuture(ThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ActionListener<T> listener)
Add an action listener to be invoked when a response has received.
|
protected void |
done() |
void |
internalAddListener(ActionListener<T> listener) |
ThreadPool |
threadPool() |
actionGet, actionGet, actionGet, actionGet, actionGet, convert, onFailure, onResponse
cancel, get, get, interruptTask, isCancelled, isDone, set, setException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionGet, actionGet, actionGet, actionGet, actionGet
onFailure, onResponse, wrap
protected AbstractListenableActionFuture(ThreadPool threadPool)
public ThreadPool threadPool()
public void addListener(ActionListener<T> listener)
ListenableActionFuture
addListener
in interface ListenableActionFuture<T>
public void internalAddListener(ActionListener<T> listener)
protected void done()
done
in class BaseFuture<T>