Task.action
.@Deprecated public class ActionTask extends BaseTask<java.lang.Void>
Task
that runs a Runnable
and returns no value. Use
Tasks.action(String, Runnable)
to create instances of this class.Task.action
BaseTask.State
_shallowTraceBuilder, _traceValueProvider
_taskDescriptor
Constructor and Description |
---|
ActionTask(java.lang.String name,
java.lang.Runnable runnable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Promise<java.lang.Void> |
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, transitionRun
addListener, await, await, get, getDelegate, getError, getOrDefault, isDone, isFailed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
action, 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, par, recover, recover, recoverWith, recoverWith, shareable, toTry, toTry, transform, transform, value, value, withRetryPolicy, withRetryPolicy, withRetryPolicy, withRetryPolicy, withSideEffect, withSideEffect, withTimeout, withTimeout
addListener, await, await, get, getError, getOrDefault, isDone, isFailed
public ActionTask(java.lang.String name, java.lang.Runnable runnable)
name
- runnable
- java.lang.IllegalArgumentException
- if runnable