public abstract class AdapterActionFuture<T,L> extends BaseFuture<T> implements ActionFuture<T>, ActionListener<L>
| Constructor and Description |
|---|
AdapterActionFuture() |
cancel, 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(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>timeout - Timeoutpublic 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>timeout - Timeoutpublic T actionGet(long timeout, 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>timeout - Timeoutunit - Time unit for the timeoutpublic void onResponse(L result)
ActionListeneronResponse in interface ActionListener<L>public void onFailure(Throwable e)
ActionListeneronFailure in interface ActionListener<L>Copyright © 2009–2017. All rights reserved.