@FunctionalInterface public interface TaskDecorator
Runnable
 about to be executed.
 Note that such a decorator is not necessarily being applied to the
 user-supplied Runnable/Callable but rather to the actual
 execution callback (which may be a wrapper around the user-supplied task).
 
The primary use case is to set some execution context around the task's invocation, or to provide some monitoring/statistics for task execution.
TaskExecutor.execute(Runnable), 
SimpleAsyncTaskExecutor.setTaskDecorator(org.springframework.core.task.TaskDecorator)| Modifier and Type | Method and Description | 
|---|---|
| Runnable | decorate(Runnable runnable)Decorate the given  Runnable, returning a potentially wrappedRunnablefor actual execution. |