org.elasticsearch.action
Interface ActionFuture<T>

All Superinterfaces:
java.util.concurrent.Future<T>
All Known Implementing Classes:
PlainActionFuture

public interface ActionFuture<T>
extends java.util.concurrent.Future<T>

An extension to Future allowing for simplified "get" operations.


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(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.
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

actionGet

T actionGet()
            throws ElasticSearchException
Similar to Future.get(), just wrapping the InterruptedException with ElasticSearchInterruptedException, and throwing the actual cause of the ExecutionException.

Throws:
ElasticSearchException

actionGet

T actionGet(long timeoutMillis)
            throws ElasticSearchException
Similar to Future.get(long, java.util.concurrent.TimeUnit), just wrapping the InterruptedException with ElasticSearchInterruptedException, and throwing the actual cause of the ExecutionException.

Parameters:
timeoutMillis - Timeout in millis
Throws:
ElasticSearchException

actionGet

T actionGet(long timeout,
            java.util.concurrent.TimeUnit unit)
            throws ElasticSearchException
Similar to Future.get(long, java.util.concurrent.TimeUnit), just wrapping the InterruptedException with ElasticSearchInterruptedException, and throwing the actual cause of the ExecutionException.

Throws:
ElasticSearchException

actionGet

T actionGet(TimeValue timeout)
            throws ElasticSearchException
Similar to Future.get(long, java.util.concurrent.TimeUnit), just wrapping the InterruptedException with ElasticSearchInterruptedException, and throwing the actual cause of the ExecutionException.

Throws:
ElasticSearchException