|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2002-2023 the original author or authors.
|
|
|
|
|
* Copyright 2002-2024 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.
|
|
|
|
|
@@ -68,7 +68,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param trigger an implementation of the {@link Trigger} interface,
|
|
|
|
|
* e.g. a {@link org.springframework.scheduling.support.CronTrigger} object
|
|
|
|
|
* wrapping a cron expression
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task,
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task,
|
|
|
|
|
* or {@code null} if the given Trigger object never fires (i.e. returns
|
|
|
|
|
* {@code null} from {@link Trigger#nextExecution})
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
@@ -85,7 +85,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param task the Runnable to execute whenever the trigger fires
|
|
|
|
|
* @param startTime the desired execution time for the task
|
|
|
|
|
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @since 5.0
|
|
|
|
|
@@ -99,7 +99,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param task the Runnable to execute whenever the trigger fires
|
|
|
|
|
* @param startTime the desired execution time for the task
|
|
|
|
|
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @deprecated as of 6.0, in favor of {@link #schedule(Runnable, Instant)}
|
|
|
|
|
@@ -118,7 +118,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param startTime the desired first execution time for the task
|
|
|
|
|
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
|
|
|
|
|
* @param period the interval between successive executions of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @since 5.0
|
|
|
|
|
@@ -134,7 +134,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param startTime the desired first execution time for the task
|
|
|
|
|
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
|
|
|
|
|
* @param period the interval between successive executions of the task (in milliseconds)
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @deprecated as of 6.0, in favor of {@link #scheduleAtFixedRate(Runnable, Instant, Duration)}
|
|
|
|
|
@@ -151,7 +151,7 @@ public interface TaskScheduler {
|
|
|
|
|
* {@link ScheduledFuture} gets cancelled.
|
|
|
|
|
* @param task the Runnable to execute whenever the trigger fires
|
|
|
|
|
* @param period the interval between successive executions of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @since 5.0
|
|
|
|
|
@@ -165,7 +165,7 @@ public interface TaskScheduler {
|
|
|
|
|
* {@link ScheduledFuture} gets cancelled.
|
|
|
|
|
* @param task the Runnable to execute whenever the trigger fires
|
|
|
|
|
* @param period the interval between successive executions of the task (in milliseconds)
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @deprecated as of 6.0, in favor of {@link #scheduleAtFixedRate(Runnable, Duration)}
|
|
|
|
|
@@ -185,7 +185,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param startTime the desired first execution time for the task
|
|
|
|
|
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
|
|
|
|
|
* @param delay the delay between the completion of one execution and the start of the next
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @since 5.0
|
|
|
|
|
@@ -203,7 +203,7 @@ public interface TaskScheduler {
|
|
|
|
|
* (if this is in the past, the task will be executed immediately, i.e. as soon as possible)
|
|
|
|
|
* @param delay the delay between the completion of one execution and the start of the next
|
|
|
|
|
* (in milliseconds)
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @deprecated as of 6.0, in favor of {@link #scheduleWithFixedDelay(Runnable, Instant, Duration)}
|
|
|
|
|
@@ -220,7 +220,7 @@ public interface TaskScheduler {
|
|
|
|
|
* {@link ScheduledFuture} gets cancelled.
|
|
|
|
|
* @param task the Runnable to execute whenever the trigger fires
|
|
|
|
|
* @param delay the delay between the completion of one execution and the start of the next
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @since 5.0
|
|
|
|
|
@@ -235,7 +235,7 @@ public interface TaskScheduler {
|
|
|
|
|
* @param task the Runnable to execute whenever the trigger fires
|
|
|
|
|
* @param delay the delay between the completion of one execution and the start of the next
|
|
|
|
|
* (in milliseconds)
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending completion of the task
|
|
|
|
|
* @return a {@link ScheduledFuture} representing pending execution of the task
|
|
|
|
|
* @throws org.springframework.core.task.TaskRejectedException if the given task was not accepted
|
|
|
|
|
* for internal reasons (e.g. a pool overload handling policy or a pool shutdown in progress)
|
|
|
|
|
* @deprecated as of 6.0, in favor of {@link #scheduleWithFixedDelay(Runnable, Duration)}
|
|
|
|
|
|