org.springframework.scheduling.config

## 类 Task

- java.lang.Object
- - org.springframework.scheduling.config.Task

- 直接已知子类:
    IntervalTask, TriggerTask

      public class Task
      extends 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.
  从以下版本开始:
    3.2
  作者:
    Chris Beams, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `Task(Runnable runnable)` Create a new `Task`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Runnable` | `getRunnable()` Return the underlying task.
    `String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### Task

          public Task(Runnable runnable)

      Create a new `Task`.
      参数:
        `runnable` - the underlying task to execute

  - ### 方法详细资料

    - #### getRunnable

          public Runnable getRunnable()

      Return the underlying task.

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`