Top Description Constructors Methods
org.springframework.scheduling.config

public Class FixedRateTask

extends IntervalTask
Class Inheritance
Imports
java.time.Duration

Specialization of IntervalTask for fixed-rate semantics.
Authors
Juergen Hoeller, Arjen Poutsma
Since
5.0.2
See Also
org.springframework.scheduling.annotation.Scheduled#fixedRate(), ScheduledTaskRegistrar#addFixedRateTask(IntervalTask)

Constructor Summary

AccessConstructor and Description
public
FixedRateTask(Runnable
the underlying task to execute
runnable
,
long
how often in milliseconds the task should be executed
interval
,
long
the initial delay before first execution of the task
initialDelay
)
Deprecated since 6.0. as of 6.0, in favor on FixedRateTask(Runnable, Duration, Duration)

Create a new FixedRateTask.

public
FixedRateTask(Runnable
the underlying task to execute
runnable
,
Duration
how often the task should be executed
interval
,
Duration
the initial delay before first execution of the task
initialDelay
)

Create a new FixedRateTask.

pack-priv

Method Summary

Inherited from org.springframework.scheduling.config.IntervalTask:
getInitialDelaygetInitialDelayDurationgetIntervalgetIntervalDuration

Constructor Detail

FixedRateTaskback to summary
public FixedRateTask(Runnable runnable, long interval, long initialDelay)

Deprecated

since 6.0.

as of 6.0, in favor on FixedRateTask(Runnable, Duration, Duration)

Create a new FixedRateTask.

Parameters
runnable:Runnable

the underlying task to execute

interval:long

how often in milliseconds the task should be executed

initialDelay:long

the initial delay before first execution of the task

Annotations
@Deprecated
since:6.0
FixedRateTaskback to summary
public FixedRateTask(Runnable runnable, Duration interval, Duration initialDelay)

Create a new FixedRateTask.

Parameters
runnable:Runnable

the underlying task to execute

interval:Duration

how often the task should be executed

initialDelay:Duration

the initial delay before first execution of the task

Since
6.0
FixedRateTaskback to summary
pack-priv FixedRateTask(IntervalTask task)