public class DelegatingExecutor extends Object implements TaskExecutor
In addition to the delegate, the async configuration properties and the task name is stored, so we know which task this executor is for and we are able to determine the timeout.
| Constructor and Description |
|---|
DelegatingExecutor(TaskExecutor delegate,
ExecutorConfigurationProperties executorConfigurationProperties,
String taskName)
Constructor.
|
public DelegatingExecutor(TaskExecutor delegate, ExecutorConfigurationProperties executorConfigurationProperties, String taskName)
delegate - the delegateexecutorConfigurationProperties - the configuration propertiestaskName - the task namepublic void execute(Runnable task)
Configures a SharedTaskContextHolder before delegating execution.
execute in interface Executorexecute in interface TaskExecutor