public static class PeriodicTaskExecutor.PeriodicTask extends Object
Constructor and Description |
---|
PeriodicTask(String taskId,
Runnable task,
long secondsBeforeFirstExec,
long secondsBetweenExec)
Builds a new task.
|
public PeriodicTask(String taskId, Runnable task, long secondsBeforeFirstExec, long secondsBetweenExec)
taskId
- the task id string (should be unique)task
- the actual Runnable
object.secondsBeforeFirstExec
- the delay in seconds between starting the executor and the initial task
execution.secondsBetweenExec
- the delay in seconds between two successive task executions.Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.