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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.ActionListener
ActionListener.MappedActionListener<Response,MappedResponse>
-
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(org.elasticsearch.common.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.ActionListener
map
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
-
Constructor Details
-
PlainActionFuture
public PlainActionFuture()
-
-
Method Details
-
newFuture
-
get
public static <T, E extends java.lang.Exception> T get(org.elasticsearch.common.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>
-