com.tangosol.util
Class TaskDaemon.PeriodicTask
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.TaskDaemon.PeriodicTask
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- TaskDaemon
public class TaskDaemon.PeriodicTask
- extends Base
- implements Runnable
A PeriodicTask is a task that automatically reschedules itself so that
it executes on a periodic basis.
Method Summary |
void |
run()
|
TaskDaemon.PeriodicTask
public TaskDaemon.PeriodicTask(Runnable task,
long cMillisInterval)
- Construct a task that will automatically be run on a periodic
basis.
- Parameters:
task
- the actual task to runcMillisInterval
- the period of time, in milliseconds, to
wait between runs of the task
run
public void run()
- Specified by:
run
in interface Runnable