public interface NodeDecorator
Computation.compute()
, so it can be used to propagate thread-local state from
the caller to worker threads that execute the node operations.Modifier and Type | Method and Description |
---|---|
<T> Callable<FluentFuture<T>> |
decorate(Graph<?> graph,
Node<T> node,
Callable<FluentFuture<T>> operation)
Decorates the given callable, which is the operation (possibly already decorated) for the
given graph and node.
|
<T> Callable<FluentFuture<T>> decorate(Graph<?> graph, Node<T> node, Callable<FluentFuture<T>> operation)
graph
- the graph being computednode
- the node to decorateoperation
- the operation for the given node, possibly already wrapped by another
decorator