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.
Optional interface to be implemented by
@Configuration classes annotated
with @EnableScheduling. Typically used for setting a specific
TaskScheduler 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 implementing Trigger-based
tasks, which are not supported by the @Scheduled annotation.
See @EnableScheduling for detailed usage examples.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureTasks(ScheduledTaskRegistrar taskRegistrar) Callback allowing aTaskSchedulerand specificTaskinstances to be registered against the given theScheduledTaskRegistrar.
-
Method Details
-
configureTasks
Callback allowing aTaskSchedulerand specificTaskinstances to be registered against the given theScheduledTaskRegistrar.- Parameters:
taskRegistrar- the registrar to be configured
-