Task.blocking.@Deprecated public class AsyncCallableTask<R> extends BaseTask<R>
Tasks.callable(String, java.util.concurrent.Callable),
tasks wrapped in AsyncCallableTask do not get any special memory consistency
guarantees and should not attempt to use shared state. In others, they should
act as a stateless function.
To use this class with an engine, register an executor with engine using
register(EngineBuilder, java.util.concurrent.Executor)
BaseTask.State_shallowTraceBuilder, _traceValueProvider| Constructor and Description |
|---|
AsyncCallableTask(java.util.concurrent.Callable<R> syncJob)
Deprecated.
As of 2.0.0, replaced by
Task.blocking. |
AsyncCallableTask(java.lang.String name,
java.util.concurrent.Callable<R> syncJob)
Deprecated.
As of 2.0.0, replaced by
Task.blocking. |
| Modifier and Type | Method and Description |
|---|---|
static void |
register(EngineBuilder builder,
java.util.concurrent.Executor executor)
Deprecated.
|
protected Promise<R> |
run(Context context)
Deprecated.
This template method is invoked when the task is run.
|
cancel, contextRun, getId, getName, getPriority, getSettableDelegate, getShallowTrace, getShallowTraceBuilder, getTrace, getTraceBuilder, markTaskPending, markTaskStarted, setPriority, setTraceValueSerializer, toString, traceFailure, transitionCancel, transitionDone, transitionPending, transitionRunaddListener, await, await, get, getDelegate, getError, getOrDefault, isDone, isFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaction, action, andThen, andThen, andThen, andThen, apply, async, async, async, async, blocking, blocking, callable, callable, failure, failure, flatMap, flatMap, flatten, flatten, map, map, onFailure, onFailure, par, par, par, par, par, par, par, par, recover, recover, recoverWith, recoverWith, shareable, toTry, toTry, transform, transform, value, value, withSideEffect, withSideEffect, withTimeoutaddListener, await, await, get, getError, getOrDefault, isDone, isFailed@Deprecated public AsyncCallableTask(java.util.concurrent.Callable<R> syncJob)
Task.blocking.@Deprecated
public AsyncCallableTask(java.lang.String name,
java.util.concurrent.Callable<R> syncJob)
Task.blocking.public static void register(EngineBuilder builder, java.util.concurrent.Executor executor)