public class OverridingContext extends ForwardingEvalContext
EvalContext
that may return a value without calling the processFn or evaluating its
dependencies.EvalContext.Promise<T>, EvalContext.Value<T>
delegate
Modifier and Type | Method and Description |
---|---|
static EvalContext |
composeWith(EvalContext baseContext,
com.spotify.flo.context.Logging logging) |
<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, com.spotify.flo.context.Logging logging)
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.