Module org.elasticsearch.server
Package org.elasticsearch.action.support
Class UnsafePlainActionFuture<T>
java.lang.Object
org.elasticsearch.action.support.PlainActionFuture<T>
org.elasticsearch.action.support.UnsafePlainActionFuture<T>
- All Implemented Interfaces:
Future<T>
,ActionFuture<T>
,ActionListener<T>
Deprecated, for removal: This API element is subject to removal in a future version.
An unsafe future. You should not need to use this for new code, rather you should be able to convert that code to be async
or use a clear hierarchy of thread pool executors around the future.
This future is unsafe, since it allows notifying the future on the same thread pool executor that it is being waited on. This
is a common deadlock scenario, since all threads may be waiting and thus no thread may be able to complete the future.
-
Constructor Summary
ConstructorsConstructorDescriptionUnsafePlainActionFuture
(String unsafeExecutor) Deprecated, for removal: This API element is subject to removal in a future version.UnsafePlainActionFuture
(String unsafeExecutor, String unsafeExecutor2) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
E extends Exception>
Tget
(CheckedConsumer<PlainActionFuture<T>, E> e, String allowedExecutor) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.elasticsearch.action.support.PlainActionFuture
actionGet, actionGet, actionGet, blockingAllowed, cancel, done, get, get, get, get, isCancelled, isDone, onFailure, onResponse, result, set
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
delegateFailure, delegateFailureAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
UnsafePlainActionFuture
Deprecated, for removal: This API element is subject to removal in a future version. -
UnsafePlainActionFuture
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
get
public static <T,E extends Exception> T get(CheckedConsumer<PlainActionFuture<T>, E> e, String allowedExecutor) throws EDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
E extends Exception
-