T
- A type carrying the execution metadata of this taskpublic abstract class Task<T> extends Object implements Serializable
TaskBuilder
, use named(String, Object...)
as the
starting point.
Tasks can not be directly evaluated. Instead, a EvalContext
has to be used. The
context will determine further details about the evaluation (threading, memoization,
instrumentation, etc.). See EvalContext.evaluate(Task)
.
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
abstract List<TaskContext<?,? super T>> |
contexts() |
static <T> Task<T> |
create(Fn<T> code,
Class<T> type,
String taskName,
Object... args) |
abstract TaskId |
id() |
List<Task<?>> |
inputs() |
static NamedTaskBuilder |
named(String taskName,
Object... args) |
abstract Class<T> |
type() |
public abstract TaskId id()
public abstract List<TaskContext<?,? super T>> contexts()
public static NamedTaskBuilder named(String taskName, Object... args)
Copyright © 2020. All rights reserved.