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 theInterruptedExceptionand throwing anIllegalStateExceptioninstead.actionGet(long timeoutMillis)Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.actionGet(org.elasticsearch.core.TimeValue timeout)Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.
-
Method Details
-
actionGet
T actionGet()Similar toFuture.get(), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead. Also catchesExecutionExceptionand throws the actual cause instead. -
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead. Also catchesExecutionExceptionand throws the actual cause instead. -
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead. Also catchesExecutionExceptionand throws the actual cause instead.- Parameters:
timeoutMillis- Timeout in millis
-
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead. Also catchesExecutionExceptionand throws the actual cause instead. -
actionGet
Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead. Also catchesExecutionExceptionand throws the actual cause instead.
-