| java.lang.Object org.springframework.scheduling.concurrent.ScheduledExecutorTask
Constructor Summary | |
public | ScheduledExecutorTask() Create a new ScheduledExecutorTask,
to be populated via bean properties. | public | ScheduledExecutorTask(Runnable executorTask) Create a new ScheduledExecutorTask, with default
one-time execution without delay. | public | ScheduledExecutorTask(Runnable executorTask, long delay) Create a new ScheduledExecutorTask, with default
one-time execution with the given delay. | public | ScheduledExecutorTask(Runnable executorTask, long delay, long period, boolean fixedRate) Create a new ScheduledExecutorTask. |
Method Summary | |
public long | getDelay() Return the delay before starting the job for the first time. | public long | getPeriod() Return the period between repeated task executions. | public Runnable | getRunnable() Return the Runnable to schedule as executor task. | public TimeUnit | getTimeUnit() Return the time unit for the delay and period values. | public boolean | isFixedRate() Return whether to schedule as fixed-rate execution. | public boolean | isOneTimeTask() | public void | setDelay(long delay) Set the delay before starting the task for the first time,
in milliseconds. | public void | setFixedRate(boolean fixedRate) Set whether to schedule as fixed-rate execution, rather than
fixed-delay execution. | public void | setPeriod(long period) Set the period between repeated task executions, in milliseconds.
Default is -1, leading to one-time execution. | public void | setRunnable(Runnable executorTask) Set the Runnable to schedule as executor task. | public void | setTimeUnit(TimeUnit timeUnit) Specify the time unit for the delay and period values. |
ScheduledExecutorTask | public ScheduledExecutorTask(Runnable executorTask)(Code) | | Create a new ScheduledExecutorTask, with default
one-time execution without delay.
Parameters: executorTask - the Runnable to schedule |
ScheduledExecutorTask | public ScheduledExecutorTask(Runnable executorTask, long delay)(Code) | | Create a new ScheduledExecutorTask, with default
one-time execution with the given delay.
Parameters: executorTask - the Runnable to schedule Parameters: delay - the delay before starting the task for the first time (ms) |
ScheduledExecutorTask | public ScheduledExecutorTask(Runnable executorTask, long delay, long period, boolean fixedRate)(Code) | | Create a new ScheduledExecutorTask.
Parameters: executorTask - the Runnable to schedule Parameters: delay - the delay before starting the task for the first time (ms) Parameters: period - the period between repeated task executions (ms) Parameters: fixedRate - whether to schedule as fixed-rate execution |
getDelay | public long getDelay()(Code) | | Return the delay before starting the job for the first time.
|
getPeriod | public long getPeriod()(Code) | | Return the period between repeated task executions.
|
getRunnable | public Runnable getRunnable()(Code) | | Return the Runnable to schedule as executor task.
|
getTimeUnit | public TimeUnit getTimeUnit()(Code) | | Return the time unit for the delay and period values.
|
isFixedRate | public boolean isFixedRate()(Code) | | Return whether to schedule as fixed-rate execution.
|
setDelay | public void setDelay(long delay)(Code) | | Set the delay before starting the task for the first time,
in milliseconds. Default is 0, immediately starting the
task after successful scheduling.
|
setRunnable | public void setRunnable(Runnable executorTask)(Code) | | Set the Runnable to schedule as executor task.
|
|
|