|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionFuture<T>
An extension to Future
allowing for simplified "get" operations.
Methods inherited from interface java.util.concurrent.Future |
---|
cancel, get, get, isCancelled, isDone |
Method Detail |
---|
T actionGet() throws ElasticSearchException
Future.get()
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
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 wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
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 wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
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 millis
ElasticSearchException
T actionGet(long timeout, TimeUnit unit) throws ElasticSearchException
Future.get(long, java.util.concurrent.TimeUnit)
, just wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
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 wrapping the InterruptedException
with
ElasticSearchInterruptedException
, and throwing the actual
cause of the ExecutionException
.
Note, the actual cause is unwrapped to the actual failure (for example, unwrapped
from RemoteTransportException
. The root failure is
still accessible using getRootFailure()
.
ElasticSearchException
@Nullable Throwable getRootFailure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |