Package org.elasticsearch.action.support
Class PlainActionFuture<T>
java.lang.Object
org.elasticsearch.common.util.concurrent.BaseFuture<T>
org.elasticsearch.action.support.AdapterActionFuture<T,T>
org.elasticsearch.action.support.PlainActionFuture<T>
- All Implemented Interfaces:
java.util.concurrent.Future<T>
,ActionFuture<T>
,ActionListener<T>
public class PlainActionFuture<T> extends AdapterActionFuture<T,T>
-
Constructor Summary
Constructors Constructor Description PlainActionFuture()
-
Method Summary
Modifier and Type Method Description protected T
convert(T listenerResponse)
static <T, E extends java.lang.Exception>
Tget(CheckedConsumer<PlainActionFuture<T>,E> e)
static <T> PlainActionFuture<T>
newFuture()
Methods inherited from class org.elasticsearch.action.support.AdapterActionFuture
actionGet, actionGet, actionGet, actionGet, actionGet, onFailure, onResponse
Methods inherited from class org.elasticsearch.common.util.concurrent.BaseFuture
blockingAllowed, cancel, done, get, get, interruptTask, isCancelled, isDone, set, setException
-
Constructor Details
-
PlainActionFuture
public PlainActionFuture()
-
-
Method Details
-
newFuture
-
get
public static <T, E extends java.lang.Exception> T get(CheckedConsumer<PlainActionFuture<T>,E> e) throws E extends java.lang.Exception- Throws:
E extends java.lang.Exception
-
convert
- Specified by:
convert
in classAdapterActionFuture<T,T>
-