File tree 1 file changed +9
-3
lines changed
spring-context/src/main/java/org/springframework/scheduling/support
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .scheduling .support ;
18
18
19
- import org .springframework .scheduling .Trigger ;
20
- import org .springframework .scheduling .TriggerContext ;
21
-
22
19
import java .util .Date ;
23
20
import java .util .TimeZone ;
24
21
22
+ import org .springframework .scheduling .Trigger ;
23
+ import org .springframework .scheduling .TriggerContext ;
24
+
25
25
/**
26
26
* {@link Trigger} implementation for cron expressions.
27
27
* Wraps a {@link CronSequenceGenerator}.
@@ -55,6 +55,12 @@ public CronTrigger(String cronExpression, TimeZone timeZone) {
55
55
}
56
56
57
57
58
+ /**
59
+ * Determine the next execution time according to the given trigger context.
60
+ * <p>Next execution times are calculated based on the
61
+ * {@linkplain TriggerContext#lastCompletionTime completion time} of the
62
+ * previous execution; therefore, overlapping executions won't occur.
63
+ */
58
64
@ Override
59
65
public Date nextExecutionTime (TriggerContext triggerContext ) {
60
66
Date date = triggerContext .lastCompletionTime ();
You can’t perform that action at this time.
0 commit comments