|
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.
|
|
122 | 122 | * last invocation and the start of the next.
|
123 | 123 | * <p>The time unit is milliseconds by default but can be overridden via
|
124 | 124 | * {@link #timeUnit}.
|
| 125 | + * <p>This attribute variant supports Spring-style "${...}" placeholders |
| 126 | + * as well as SpEL expressions. |
125 | 127 | * @return the delay as a String value — for example, a placeholder
|
126 | 128 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
127 | 129 | * @since 3.2.2
|
| 130 | + * @see #fixedDelay() |
128 | 131 | */
|
129 | 132 | String fixedDelayString() default "";
|
130 | 133 |
|
|
140 | 143 | * Execute the annotated method with a fixed period between invocations.
|
141 | 144 | * <p>The time unit is milliseconds by default but can be overridden via
|
142 | 145 | * {@link #timeUnit}.
|
| 146 | + * <p>This attribute variant supports Spring-style "${...}" placeholders |
| 147 | + * as well as SpEL expressions. |
143 | 148 | * @return the period as a String value — for example, a placeholder
|
144 | 149 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
145 | 150 | * @since 3.2.2
|
| 151 | + * @see #fixedRate() |
146 | 152 | */
|
147 | 153 | String fixedRateString() default "";
|
148 | 154 |
|
|
161 | 167 | * {@link #fixedRate} or {@link #fixedDelay} task.
|
162 | 168 | * <p>The time unit is milliseconds by default but can be overridden via
|
163 | 169 | * {@link #timeUnit}.
|
| 170 | + * <p>This attribute variant supports Spring-style "${...}" placeholders |
| 171 | + * as well as SpEL expressions. |
164 | 172 | * @return the initial delay as a String value — for example, a placeholder
|
165 | 173 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
166 | 174 | * @since 3.2.2
|
| 175 | + * @see #initialDelay() |
167 | 176 | */
|
168 | 177 | String initialDelayString() default "";
|
169 | 178 |
|
|
0 commit comments