1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 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.
@@ -68,7 +68,7 @@ default Clock getClock() {
68
68
* @param trigger an implementation of the {@link Trigger} interface,
69
69
* e.g. a {@link org.springframework.scheduling.support.CronTrigger} object
70
70
* wrapping a cron expression
71
- * @return a {@link ScheduledFuture} representing pending completion of the task,
71
+ * @return a {@link ScheduledFuture} representing pending execution of the task,
72
72
* or {@code null} if the given Trigger object never fires (i.e. returns
73
73
* {@code null} from {@link Trigger#nextExecution})
74
74
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
@@ -85,7 +85,7 @@ default Clock getClock() {
85
85
* @param task the Runnable to execute whenever the trigger fires
86
86
* @param startTime the desired execution time for the task
87
87
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
88
- * @return a {@link ScheduledFuture} representing pending completion of the task
88
+ * @return a {@link ScheduledFuture} representing pending execution of the task
89
89
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
90
90
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
91
91
* @since 5.0
@@ -99,7 +99,7 @@ default Clock getClock() {
99
99
* @param task the Runnable to execute whenever the trigger fires
100
100
* @param startTime the desired execution time for the task
101
101
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
102
- * @return a {@link ScheduledFuture} representing pending completion of the task
102
+ * @return a {@link ScheduledFuture} representing pending execution of the task
103
103
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
104
104
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
105
105
* @deprecated as of 6.0, in favor of {@link #schedule(Runnable, Instant)}
@@ -118,7 +118,7 @@ default ScheduledFuture<?> schedule(Runnable task, Date startTime) {
118
118
* @param startTime the desired first execution time for the task
119
119
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
120
120
* @param period the interval between successive executions of the task
121
- * @return a {@link ScheduledFuture} representing pending completion of the task
121
+ * @return a {@link ScheduledFuture} representing pending execution of the task
122
122
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
123
123
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
124
124
* @since 5.0
@@ -134,7 +134,7 @@ default ScheduledFuture<?> schedule(Runnable task, Date startTime) {
134
134
* @param startTime the desired first execution time for the task
135
135
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
136
136
* @param period the interval between successive executions of the task (in milliseconds)
137
- * @return a {@link ScheduledFuture} representing pending completion of the task
137
+ * @return a {@link ScheduledFuture} representing pending execution of the task
138
138
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
139
139
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
140
140
* @deprecated as of 6.0, in favor of {@link #scheduleAtFixedRate(Runnable, Instant, Duration)}
@@ -151,7 +151,7 @@ default ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Date startTime, lo
151
151
* {@link ScheduledFuture} gets cancelled.
152
152
* @param task the Runnable to execute whenever the trigger fires
153
153
* @param period the interval between successive executions of the task
154
- * @return a {@link ScheduledFuture} representing pending completion of the task
154
+ * @return a {@link ScheduledFuture} representing pending execution of the task
155
155
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
156
156
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
157
157
* @since 5.0
@@ -165,7 +165,7 @@ default ScheduledFuture<?> scheduleAtFixedRate(Runnable task, Date startTime, lo
165
165
* {@link ScheduledFuture} gets cancelled.
166
166
* @param task the Runnable to execute whenever the trigger fires
167
167
* @param period the interval between successive executions of the task (in milliseconds)
168
- * @return a {@link ScheduledFuture} representing pending completion of the task
168
+ * @return a {@link ScheduledFuture} representing pending execution of the task
169
169
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
170
170
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
171
171
* @deprecated as of 6.0, in favor of {@link #scheduleAtFixedRate(Runnable, Duration)}
@@ -185,7 +185,7 @@ default ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long period) {
185
185
* @param startTime the desired first execution time for the task
186
186
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
187
187
* @param delay the delay between the completion of one execution and the start of the next
188
- * @return a {@link ScheduledFuture} representing pending completion of the task
188
+ * @return a {@link ScheduledFuture} representing pending execution of the task
189
189
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
190
190
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
191
191
* @since 5.0
@@ -203,7 +203,7 @@ default ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long period) {
203
203
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
204
204
* @param delay the delay between the completion of one execution and the start of the next
205
205
* (in milliseconds)
206
- * @return a {@link ScheduledFuture} representing pending completion of the task
206
+ * @return a {@link ScheduledFuture} representing pending execution of the task
207
207
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
208
208
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
209
209
* @deprecated as of 6.0, in favor of {@link #scheduleWithFixedDelay(Runnable, Instant, Duration)}
@@ -220,7 +220,7 @@ default ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Date startTime,
220
220
* {@link ScheduledFuture} gets cancelled.
221
221
* @param task the Runnable to execute whenever the trigger fires
222
222
* @param delay the delay between the completion of one execution and the start of the next
223
- * @return a {@link ScheduledFuture} representing pending completion of the task
223
+ * @return a {@link ScheduledFuture} representing pending execution of the task
224
224
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
225
225
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
226
226
* @since 5.0
@@ -235,7 +235,7 @@ default ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, Date startTime,
235
235
* @param task the Runnable to execute whenever the trigger fires
236
236
* @param delay the delay between the completion of one execution and the start of the next
237
237
* (in milliseconds)
238
- * @return a {@link ScheduledFuture} representing pending completion of the task
238
+ * @return a {@link ScheduledFuture} representing pending execution of the task
239
239
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
240
240
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
241
241
* @deprecated as of 6.0, in favor of {@link #scheduleWithFixedDelay(Runnable, Duration)}
0 commit comments