Package org.elasticsearch.action
Interface ActionFuture<T>
- All Superinterfaces:
java.util.concurrent.Future<T>
- All Known Implementing Classes:
AdapterActionFuture,ListenableActionFuture,PlainActionFuture
public interface ActionFuture<T>
extends java.util.concurrent.Future<T>
An extension to
Future allowing for simplified "get" operations.-
Method Summary
Modifier and Type Method Description TactionGet()Similar toFuture.get(), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.TactionGet(long timeoutMillis)Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.TactionGet(long timeout, java.util.concurrent.TimeUnit unit)Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.TactionGet(java.lang.String timeout)Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.TactionGet(org.elasticsearch.common.unit.TimeValue timeout)Similar toFuture.get(long, java.util.concurrent.TimeUnit), just catching theInterruptedExceptionand throwing anIllegalStateExceptioninstead.Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
-
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.
-