Interface TaskWrapper


public interface TaskWrapper
A TaskWrapper is a facility to wrap Runnable background tasks before they are passed to the Executor. Use-cases include injection of thread-local context variables, or more fine-granular error handling.

All sub-queries sent by the federation engine that make use of the concurrency infrastructure (e.g. ControlledWorkerScheduler) are passing this wrapper.

The concrete implementation can be configured using FedXConfig.withTaskWrapper(TaskWrapper).

Author:
Andreas Schwarte
See Also: