|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.util.concurrent.AbstractFuture<T> org.elasticsearch.action.support.AdapterActionFuture<T,L>
public abstract class AdapterActionFuture<T,L>
Constructor Summary | |
---|---|
AdapterActionFuture()
|
Method Summary | |
---|---|
T |
actionGet()
Similar to Future.get() , just wrapping the InterruptedException with
ElasticSearchInterruptedException , and throwing the actual
cause of the ExecutionException . |
T |
actionGet(long timeoutMillis)
Similar to Future.get(long, java.util.concurrent.TimeUnit) , just wrapping the InterruptedException with
ElasticSearchInterruptedException , and throwing the actual
cause of the ExecutionException . |
T |
actionGet(long timeout,
java.util.concurrent.TimeUnit unit)
Similar to Future.get(long, java.util.concurrent.TimeUnit) , just wrapping the InterruptedException with
ElasticSearchInterruptedException , and throwing the actual
cause of the ExecutionException . |
T |
actionGet(java.lang.String timeout)
Similar to Future.get(long, java.util.concurrent.TimeUnit) , just wrapping the InterruptedException with
ElasticSearchInterruptedException , and throwing the actual
cause of the ExecutionException . |
T |
actionGet(TimeValue timeout)
Similar to Future.get(long, java.util.concurrent.TimeUnit) , just wrapping the InterruptedException with
ElasticSearchInterruptedException , and throwing the actual
cause of the ExecutionException . |
protected abstract T |
convert(L listenerResponse)
|
void |
onFailure(java.lang.Throwable e)
A failure handler. |
void |
onResponse(L result)
A response handler. |
Methods inherited from class org.elasticsearch.common.util.concurrent.AbstractFuture |
---|
cancel, cancel, done, get, get, 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
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public T actionGet(java.lang.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
.
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
.
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
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public T actionGet(long timeout, java.util.concurrent.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
.
actionGet
in interface ActionFuture<T>
ElasticSearchException
public void onResponse(L result)
ActionListener
onResponse
in interface ActionListener<L>
public void onFailure(java.lang.Throwable e)
ActionListener
onFailure
in interface ActionListener<L>
protected abstract T convert(L listenerResponse)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |