Class DelayedTask
java.lang.Object
org.springframework.scheduling.config.Task
org.springframework.scheduling.config.DelayedTask
- Direct Known Subclasses:
 IntervalTask,OneTimeTask
Task implementation defining a Runnable with an initial delay.- Since:
 - 6.1
 - Author:
 - Juergen Hoeller
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDelayedTask(Runnable runnable, Duration initialDelay) Create a newDelayedTask. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the initial delay before first execution of the task.Methods inherited from class org.springframework.scheduling.config.Task
getRunnable, toString 
- 
Constructor Details
- 
DelayedTask
Create a newDelayedTask.- Parameters:
 runnable- the underlying task to executeinitialDelay- the initial delay before execution of the task
 
 - 
 - 
Method Details
- 
getInitialDelayDuration
Return the initial delay before first execution of the task. 
 -