Runnables based on different kinds of triggers.
This interface is separate from SchedulingTaskExecutor since it
usually represents a different kind of backend, i.e. a thread pool with
different characteristics and capabilities. Implementations may implement
both interfaces if they can handle both kinds of execution characteristics.
The 'default' implementation is
org.,
wrapping a native java.
and adding extended trigger capabilities.
This interface is roughly equivalent to a JSR-236
ManagedScheduledExecutorService as supported in Jakarta EE
environments but aligned with Spring's TaskExecutor model.
org.springframework.core.task.TaskExecutor , java.util.concurrent.ScheduledExecutorService , org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
| Modifier and Type | Method and Description |
|---|---|
| public default Clock | |
| public ScheduledFuture | Returns: aScheduledFuture representing pending completion of the task,
or null if the given Trigger object never fires (i.e. returns
null from Trigger#nextExecution)the Runnable to execute whenever the trigger fires task, Trigger an implementation of the trigger)Trigger interface,
e.g. a org. object
wrapping a cron expressionSchedule the given |
| public ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Instant 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) startTime)Schedule the given |
| public default ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Date 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) startTime)
Deprecated
since 6.0. as of 6.0, in favor of
Schedule the given schedule(Runnable, Instant)
Runnable, invoking it at the specified execution time.
|
| public ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Instant 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) startTime, Duration the interval between successive executions of the task period)Schedule the given |
| public default ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Date 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) startTime, long the interval between successive executions of the task (in milliseconds) period)
Deprecated
since 6.0. as of 6.0, in favor of
Schedule the given scheduleAtFixedRate(Runnable, Instant, Duration)
Runnable, invoking it at the specified execution time
and subsequently with the given period.
|
| public ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Duration the interval between successive executions of the task period)Schedule the given |
| public default ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, long the interval between successive executions of the task (in milliseconds) period)
Deprecated
since 6.0. as of 6.0, in favor of
Schedule the given scheduleAtFixedRate(Runnable, Duration)
Runnable, starting as soon as possible and
invoking it with the given period.
|
| public ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Instant 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) startTime, Duration the delay between the completion of one execution and the start of the next delay)Schedule the given |
| public default ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Date 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) startTime, long the delay between the completion of one execution and the start of the next
(in milliseconds) delay)
Deprecated
since 6.0. as of 6.0, in favor of
Schedule the given scheduleWithFixedDelay(Runnable, Instant, Duration)
Runnable, invoking it at the specified execution time
and subsequently with the given delay between the completion of one execution
and the start of the next.
|
| public ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, Duration the delay between the completion of one execution and the start of the next delay)Schedule the given |
| public default ScheduledFuture | Returns: aScheduledFuture representing pending completion of the taskthe Runnable to execute whenever the trigger fires task, long the delay between the completion of one execution and the start of the next
(in milliseconds) delay)
Deprecated
since 6.0. as of 6.0, in favor of
Schedule the given scheduleWithFixedDelay(Runnable, Duration)
Runnable, starting as soon as possible and invoking it with
the given delay between the completion of one execution and the start of the next.
|
| getClock | back to summary |
|---|---|
| public default Clock getClock() Return the clock to use for scheduling purposes.
| |
| schedule | back to summary |
|---|---|
| public ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| schedule | back to summary |
|---|---|
| public ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| schedule | back to summary |
|---|---|
| public default ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public default ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public default ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public default ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public default ScheduledFuture Schedule the given Execution will end once the scheduler shuts down or the returned
| |