Top Description Constructors Methods
org.springframework.scheduling.config

public Class FixedDelayTask

extends IntervalTask
Class Inheritance
Imports
java.time.Duration

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

Constructor Summary

AccessConstructor and Description
public
FixedDelayTask(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 FixedDelayTask(Runnable, Duration, Duration)
Create a new FixedDelayTask.
public
FixedDelayTask(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 FixedDelayTask.

pack-priv

Method Summary

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

Constructor Detail

FixedDelayTaskback to summary
public FixedDelayTask(Runnable runnable, long interval, long initialDelay)

Deprecated

since 6.0.

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

Create a new FixedDelayTask.

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
FixedDelayTaskback to summary
public FixedDelayTask(Runnable runnable, Duration interval, Duration initialDelay)

Create a new FixedDelayTask.

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
FixedDelayTaskback to summary
pack-priv FixedDelayTask(IntervalTask task)