Interface SchedulingConfigurer
public interface SchedulingConfigurer
Optional interface to be implemented by @Configuration
classes annotated with @EnableScheduling
. Typically used for setting a specificTaskScheduler
bean 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 @Scheduled
annotation. For example, this may be necessary when implementingTrigger
-based tasks, which are not supported by the@Scheduled
annotation.See @
EnableScheduling
for detailed usage examples.- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
EnableScheduling
,ScheduledTaskRegistrar
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configureTasks(ScheduledTaskRegistrar taskRegistrar)
Callback allowing aTaskScheduler
and specificTask
instances to be registered against the given theScheduledTaskRegistrar
Method Detail
configureTasks
void configureTasks(ScheduledTaskRegistrar taskRegistrar)
Callback allowing aTaskScheduler
and specificTask
instances to be registered against the given theScheduledTaskRegistrar
- Parameters:
taskRegistrar
- the registrar to be configured.