Class Task
java.lang.Object
org.springframework.scheduling.config.Task
- Direct Known Subclasses:
DelayedTask
,TriggerTask
Holder class defining a
Runnable
to be executed as a task, typically at a
scheduled time or interval. See subclass hierarchy for various scheduling approaches.- Since:
- 3.2
- Author:
- Chris Beams, Juergen Hoeller, Brian Clozel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the outcome of the last task execution.Return the underlying task.toString()
-
Constructor Details
-
Task
Create a newTask
.- Parameters:
runnable
- the underlying task to execute
-
-
Method Details
-
getRunnable
Return the underlying task. -
getLastExecutionOutcome
Return the outcome of the last task execution.- Since:
- 6.2
-
toString
-