java.util.concurrent.Future<T>, ActionFuture<T>, ActionListener<L>PlainActionFuture, PlainListenableActionFuturepublic abstract class AdapterActionFuture<T,L> extends BaseFuture<T> implements ActionFuture<T>, ActionListener<L>
| Constructor | Description |
|---|---|
AdapterActionFuture() |
| Modifier and Type | Method | Description |
|---|---|---|
T |
actionGet() |
Similar to
Future.get(), just catching the InterruptedException and throwing
an IllegalStateException instead. |
T |
actionGet(long timeoutMillis) |
Similar to
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. |
T |
actionGet(long timeout,
java.util.concurrent.TimeUnit unit) |
Similar to
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. |
T |
actionGet(java.lang.String timeout) |
Similar to
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. |
T |
actionGet(TimeValue timeout) |
Similar to
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. |
protected abstract T |
convert(L listenerResponse) |
|
void |
onFailure(java.lang.Exception e) |
A failure caused by an exception at some phase of the task.
|
void |
onResponse(L result) |
Handle action response.
|
onFailure, onResponse, toBiConsumer, wrap, wrapcancel, done, get, get, interruptTask, isCancelled, isDone, set, setExceptionpublic T actionGet()
ActionFutureFuture.get(), just catching the InterruptedException and throwing
an IllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.actionGet in interface ActionFuture<T>public T actionGet(java.lang.String timeout)
ActionFutureFuture.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.actionGet in interface ActionFuture<T>public T actionGet(long timeoutMillis)
ActionFutureFuture.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.actionGet in interface ActionFuture<T>timeoutMillis - Timeout in millispublic T actionGet(TimeValue timeout)
ActionFutureFuture.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.actionGet in interface ActionFuture<T>public T actionGet(long timeout, java.util.concurrent.TimeUnit unit)
ActionFutureFuture.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an IllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.actionGet in interface ActionFuture<T>public void onResponse(L result)
ActionListeneronResponse in interface ActionListener<T>public void onFailure(java.lang.Exception e)
ActionListeneronFailure in interface ActionListener<T>