Package org.elasticsearch.action
Interface ActionFuture<T>
- All Superinterfaces:
Future<T>
- All Known Implementing Classes:
AdapterActionFuture
,ListenableActionFuture
,PlainActionFuture
An extension to
Future
allowing for simplified "get" operations.-
Method Summary
Modifier and TypeMethodDescriptionSimilar toFuture.get()
, just catching theInterruptedException
and throwing anIllegalStateException
instead.actionGet(long timeoutMillis)
Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead.Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead.Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead.actionGet(org.elasticsearch.core.TimeValue timeout)
Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead.
-
Method Details
-
actionGet
T actionGet()Similar toFuture.get()
, just catching theInterruptedException
and throwing anIllegalStateException
instead. Also catchesExecutionException
and throws the actual cause instead. -
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead. Also catchesExecutionException
and throws the actual cause instead. -
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead. Also catchesExecutionException
and throws the actual cause instead.- Parameters:
timeoutMillis
- Timeout in millis
-
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead. Also catchesExecutionException
and throws the actual cause instead. -
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit)
, just catching theInterruptedException
and throwing anIllegalStateException
instead. Also catchesExecutionException
and throws the actual cause instead.
-