|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2021 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
117 | 117 | * last invocation and the start of the next.
|
118 | 118 | * <p>The time unit is milliseconds by default but can be overridden via
|
119 | 119 | * {@link #timeUnit}.
|
| 120 | + * <p>This attribute variant supports Spring-style "${...}" placeholders |
| 121 | + * as well as SpEL expressions. |
120 | 122 | * @return the delay as a String value — for example, a placeholder
|
121 | 123 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
122 | 124 | * @since 3.2.2
|
| 125 | + * @see #fixedDelay() |
123 | 126 | */
|
124 | 127 | String fixedDelayString() default "";
|
125 | 128 |
|
|
135 | 138 | * Execute the annotated method with a fixed period between invocations.
|
136 | 139 | * <p>The time unit is milliseconds by default but can be overridden via
|
137 | 140 | * {@link #timeUnit}.
|
| 141 | + * <p>This attribute variant supports Spring-style "${...}" placeholders |
| 142 | + * as well as SpEL expressions. |
138 | 143 | * @return the period as a String value — for example, a placeholder
|
139 | 144 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
140 | 145 | * @since 3.2.2
|
| 146 | + * @see #fixedRate() |
141 | 147 | */
|
142 | 148 | String fixedRateString() default "";
|
143 | 149 |
|
|
156 | 162 | * {@link #fixedRate} or {@link #fixedDelay} task.
|
157 | 163 | * <p>The time unit is milliseconds by default but can be overridden via
|
158 | 164 | * {@link #timeUnit}.
|
| 165 | + * <p>This attribute variant supports Spring-style "${...}" placeholders |
| 166 | + * as well as SpEL expressions. |
159 | 167 | * @return the initial delay as a String value — for example, a placeholder
|
160 | 168 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
161 | 169 | * @since 3.2.2
|
| 170 | + * @see #initialDelay() |
162 | 171 | */
|
163 | 172 | String initialDelayString() default "";
|
164 | 173 |
|
|
0 commit comments