Top Description Methods
org.springframework.scheduling.annotation

public Interface SchedulingConfigurer

Annotations
@FunctionalInterface
Imports
org.springframework.scheduling.config.ScheduledTaskRegistrar

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.

Author
Chris Beams
Since
3.1
See Also
EnableScheduling, ScheduledTaskRegistrar

Method Summary

Modifier and TypeMethod and Description
public void
configureTasks(ScheduledTaskRegistrar
the registrar to be configured
taskRegistrar
)

Callback allowing a org.springframework.scheduling.TaskScheduler and specific org.springframework.scheduling.config.Task instances to be registered against the given the ScheduledTaskRegistrar.

Method Detail

configureTasksback to summary
public void configureTasks(ScheduledTaskRegistrar taskRegistrar)

Callback allowing a org.springframework.scheduling.TaskScheduler and specific org.springframework.scheduling.config.Task instances to be registered against the given the ScheduledTaskRegistrar.

Parameters
taskRegistrar:ScheduledTaskRegistrar

the registrar to be configured