consciouscode.seedling.tasks
Interface PeriodicTask

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractPeriodicTask, MemoryMonitorTask

public interface PeriodicTask
extends Runnable

Interface for tasks that can be scheduled for execution by a Clock.


Method Summary
 long getPeriodMillis()
          Get the amount of time, in milliseconds, between executions of this task.
 boolean isStartedImmediately()
          Determine whether this task should be started immediately when it's added to a clock.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getPeriodMillis

long getPeriodMillis()
Get the amount of time, in milliseconds, between executions of this task. Periods are measured from start-of-task to the next start-of-task. It is generally a bad idea to use a period that is shorter than the expected task duration.


isStartedImmediately

boolean isStartedImmediately()
Determine whether this task should be started immediately when it's added to a clock.



Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.