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()
.
ElasticsearchException
T 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()
.
ElasticsearchException
T 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 millisElasticsearchException
T 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()
.
ElasticsearchException
T 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()
.
ElasticsearchException
Copyright © 2009–2015. All rights reserved.