public interface ActionFuture<T> extends Future<T>
Future allowing for simplified "get" operations.T actionGet() throws ElasticsearchException
Future.get(), just catching the InterruptedException and throwing
an ElasticsearchIllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException. The root failure is
still accessible using getRootFailure().
ElasticsearchExceptionT actionGet(String timeout) throws ElasticsearchException
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an ElasticsearchIllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException. The root failure is
still accessible using getRootFailure().
ElasticsearchExceptionT actionGet(long timeoutMillis) throws ElasticsearchException
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an ElasticsearchIllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException. The root failure is
still accessible using getRootFailure().
timeoutMillis - Timeout in millisElasticsearchExceptionT actionGet(long timeout, TimeUnit unit) throws ElasticsearchException
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an ElasticsearchIllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException. The root failure is
still accessible using getRootFailure().
ElasticsearchExceptionT actionGet(TimeValue timeout) throws ElasticsearchException
Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing
an ElasticsearchIllegalStateException instead. Also catches
ExecutionException and throws the actual cause instead.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException. The root failure is
still accessible using getRootFailure().
ElasticsearchExceptionCopyright © 2009–2016. All rights reserved.