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 SummaryConstructorsConstructorDescriptionDelayedTask(Runnable runnable, Duration initialDelay) Create a newDelayedTask.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the initial delay before first execution of the task.Methods inherited from class org.springframework.scheduling.config.TaskgetRunnable, toString
- 
Constructor Details- 
DelayedTaskCreate a newDelayedTask.- Parameters:
- runnable- the underlying task to execute
- initialDelay- the initial delay before execution of the task
 
 
- 
- 
Method Details- 
getInitialDelayDurationReturn the initial delay before first execution of the task.
 
-