|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.util.concurrent.BaseFuture<T> org.elasticsearch.action.support.AdapterActionFuture<T,L>
public abstract class AdapterActionFuture<T,L>
Constructor Summary | |
---|---|
AdapterActionFuture()
|
Methods inherited from class org.elasticsearch.common.util.concurrent.BaseFuture |
---|
cancel, done, get, get, interruptTask, isCancelled, isDone, set, setException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.concurrent.Future |
---|
cancel, get, get, isCancelled, isDone |
Constructor Detail |
---|
public AdapterActionFuture()
Method Detail |
---|
public T actionGet() throws ElasticSearchException
ActionFuture
Future.get()
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException
. The root failure is
still accessible using ActionFuture.getRootFailure()
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public T actionGet(String timeout) throws ElasticSearchException
ActionFuture
Future.get(long, java.util.concurrent.TimeUnit)
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException
. The root failure is
still accessible using ActionFuture.getRootFailure()
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public T actionGet(long timeoutMillis) throws ElasticSearchException
ActionFuture
Future.get(long, java.util.concurrent.TimeUnit)
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException
. The root failure is
still accessible using ActionFuture.getRootFailure()
.
actionGet
in interface ActionFuture<T>
timeoutMillis
- Timeout in millis
ElasticSearchException
public T actionGet(TimeValue timeout) throws ElasticSearchException
ActionFuture
Future.get(long, java.util.concurrent.TimeUnit)
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException
. The root failure is
still accessible using ActionFuture.getRootFailure()
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public T actionGet(long timeout, TimeUnit unit) throws ElasticSearchException
ActionFuture
Future.get(long, java.util.concurrent.TimeUnit)
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException
. The root failure is
still accessible using ActionFuture.getRootFailure()
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public void onResponse(L result)
ActionListener
onResponse
in interface ActionListener<L>
public void onFailure(Throwable e)
ActionListener
onFailure
in interface ActionListener<L>
protected abstract T convert(L listenerResponse)
public Throwable getRootFailure()
ActionFuture
getRootFailure
in interface ActionFuture<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |