Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.scheduling.config
Class Task

    java.lang.Object
      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()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD