public class MemoizingContext extends ForwardingEvalContext
EvalContext
that memoizes the results of task evaluations and
ensures that tasks are only evaluated once.EvalContext.Promise<T>, EvalContext.Value<T>
delegate
LOG
Modifier and Type | Method and Description |
---|---|
static EvalContext |
composeWith(EvalContext baseContext) |
<T> EvalContext.Value<T> |
evaluateInternal(Task<T> task,
EvalContext context)
A variant of
EvalContext.evaluate(Task) that allows the caller to specify the EvalContext
that should be used within the graph during evaluation. |
immediateValue, invokeProcessFn, listener, promise, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
async, currentTask, evaluate, sync
public static EvalContext composeWith(EvalContext baseContext)
public <T> EvalContext.Value<T> evaluateInternal(Task<T> task, EvalContext context)
EvalContext
EvalContext.evaluate(Task)
that allows the caller to specify the EvalContext
that should be used within the graph during evaluation.
This is intended to be called from EvalContext
implementations that form a
composition of other contexts.
evaluateInternal
in interface EvalContext
evaluateInternal
in class ForwardingEvalContext
T
- The type of the task resulttask
- The task to evaluatecontext
- The context to use in further evaluationCopyright © 2020. All rights reserved.