diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java index 1b4cca0778..a202e7846b 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,9 +122,12 @@ public @interface Scheduled { * last invocation and the start of the next. *
The time unit is milliseconds by default but can be overridden via * {@link #timeUnit}. + *
This attribute variant supports Spring-style "${...}" placeholders + * as well as SpEL expressions. * @return the delay as a String value — for example, a placeholder * or a {@link java.time.Duration#parse java.time.Duration} compliant value * @since 3.2.2 + * @see #fixedDelay() */ String fixedDelayString() default ""; @@ -140,9 +143,12 @@ public @interface Scheduled { * Execute the annotated method with a fixed period between invocations. *
The time unit is milliseconds by default but can be overridden via * {@link #timeUnit}. + *
This attribute variant supports Spring-style "${...}" placeholders + * as well as SpEL expressions. * @return the period as a String value — for example, a placeholder * or a {@link java.time.Duration#parse java.time.Duration} compliant value * @since 3.2.2 + * @see #fixedRate() */ String fixedRateString() default ""; @@ -161,9 +167,12 @@ public @interface Scheduled { * {@link #fixedRate} or {@link #fixedDelay} task. *
The time unit is milliseconds by default but can be overridden via * {@link #timeUnit}. + *
This attribute variant supports Spring-style "${...}" placeholders + * as well as SpEL expressions. * @return the initial delay as a String value — for example, a placeholder * or a {@link java.time.Duration#parse java.time.Duration} compliant value * @since 3.2.2 + * @see #initialDelay() */ String initialDelayString() default "";