public abstract class AbstractListenableActionFuture<T,L> extends AdapterActionFuture<T,L> implements ListenableActionFuture<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractListenableActionFuture(boolean listenerThreaded,
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) |
boolean |
listenerThreaded() |
ThreadPool |
threadPool() |
actionGet, actionGet, actionGet, actionGet, actionGet, convert, getRootFailure, 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, getRootFailure
protected AbstractListenableActionFuture(boolean listenerThreaded, ThreadPool threadPool)
public boolean listenerThreaded()
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>
Copyright © 2009–2015. All rights reserved.