Spring Framework

org.springframework.scheduling.config
Class Task

java.lang.Object
  extended by org.springframework.scheduling.config.Task
Direct Known Subclasses:
IntervalTask, TriggerTask

public class Task
extends java.lang.Object

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

Constructor Summary
Task(java.lang.Runnable runnable)
          Create a new Task.
 
Method Summary
 java.lang.Runnable getRunnable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task(java.lang.Runnable runnable)
Create a new Task.

Parameters:
runnable - the underlying task to execute.
Method Detail

getRunnable

public java.lang.Runnable getRunnable()

Spring Framework