Interface SchedulingConfigurer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SchedulingConfigurer
Optional interface to be implemented by @Configurationclasses annotated with @EnableScheduling. Typically used for setting a specificTaskSchedulerbean 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 implementingTrigger-based tasks, which are not supported by the@Scheduledannotation.See @
EnableSchedulingfor 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 voidconfigureTasks(ScheduledTaskRegistrar taskRegistrar)Callback allowing aTaskSchedulerand specificTaskinstances to be registered against the given theScheduledTaskRegistrar.
Method Detail
configureTasks
void configureTasks(ScheduledTaskRegistrar taskRegistrar)
Callback allowing aTaskSchedulerand specificTaskinstances to be registered against the given theScheduledTaskRegistrar.- Parameters:
taskRegistrar- the registrar to be configured.