|
|
|
@ -1,5 +1,5 @@
@@ -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 {
@@ -122,9 +122,12 @@ public @interface Scheduled {
|
|
|
|
|
* last invocation and the start of the next. |
|
|
|
|
* <p>The time unit is milliseconds by default but can be overridden via |
|
|
|
|
* {@link #timeUnit}. |
|
|
|
|
* <p>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 {
@@ -140,9 +143,12 @@ public @interface Scheduled {
|
|
|
|
|
* Execute the annotated method with a fixed period between invocations. |
|
|
|
|
* <p>The time unit is milliseconds by default but can be overridden via |
|
|
|
|
* {@link #timeUnit}. |
|
|
|
|
* <p>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 {
@@ -161,9 +167,12 @@ public @interface Scheduled {
|
|
|
|
|
* {@link #fixedRate} or {@link #fixedDelay} task. |
|
|
|
|
* <p>The time unit is milliseconds by default but can be overridden via |
|
|
|
|
* {@link #timeUnit}. |
|
|
|
|
* <p>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 ""; |
|
|
|
|
|
|
|
|
|