public class TracingContext extends ForwardingEvalContext
EvalContext.Promise<T>, EvalContext.Value<T>
delegate
LOG
Modifier and Type | Method and Description |
---|---|
static EvalContext |
composeWith(EvalContext baseContext) |
<T> EvalContext.Value<T> |
invokeProcessFn(TaskId taskId,
Fn<T> processFn)
Invoke the process function of a task.
|
evaluateInternal, immediateValue, 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> invokeProcessFn(TaskId taskId, Fn<T> processFn)
EvalContext
This method will be called when the process function of a task is ready to be invoked. This
gives this EvalContext
the responsibility of invoking user code. By overriding this
method, one can intercept the evaluation flow just at the moment between inputs being ready
and when the user supplied function for task processing is being invoked.
The default implementation will simply invoke the function immediately inside a
EvalContext.Value
created by EvalContext.value(Fn)
.
invokeProcessFn
in interface EvalContext
invokeProcessFn
in class ForwardingEvalContext
T
- The task value typetaskId
- The id of the task being invokedprocessFn
- A lazily evaluated handle to the process functionCopyright © 2020. All rights reserved.