org.springframework.scheduling.annotation
Annotation Type Scheduled


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Scheduled

Annotation that marks a method to be scheduled. Exactly one of the cron, fixedDelay, or fixedRate attributes must be provided.

The annotated method must expect no arguments and have a void return type.

Since:
3.0
Author:
Mark Fisher
See Also:
ScheduledAnnotationBeanPostProcessor

Optional Element Summary
 String cron
           
 long fixedDelay
           
 long fixedRate
           
 

cron

public abstract String cron
Default:
""

fixedDelay

public abstract long fixedDelay
Default:
-1L

fixedRate

public abstract long fixedRate
Default:
-1L