@FunctionalInterface public interface SchedulingConfigurer
Configurationclasses annotated with @
EnableScheduling. Typically used for setting a specific
TaskSchedulerbean to be used when executing scheduled tasks or for registering scheduled tasks in a programmatic fashion as opposed to the declarative approach of using the @
Scheduledannotation. For example, this may be necessary when implementing
Trigger-based tasks, which are not supported by the
EnableScheduling for detailed usage examples.
|Modifier and Type||Method and Description|
Callback allowing a
void configureTasks(ScheduledTaskRegistrar taskRegistrar)
Taskinstances to be registered against the given the
taskRegistrar- the registrar to be configured.