Interface SelfSchedulingRunnable
- 
- All Superinterfaces:
- java.lang.Runnable
 
 public interface SelfSchedulingRunnable extends java.lang.Runnable
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longgetNextExecDelayMillis()Returns the delay, in milliseconds, from "now" until the next time that run should be called.default booleanisCanceled()voidsetController(SchedulingController controller)Called by the execution engine, passes in a scheduling controller that the self scheduling runnable can use to request a reschedule.
 
- 
- 
- 
Method Detail- 
getNextExecDelayMillislong getNextExecDelayMillis() Returns the delay, in milliseconds, from "now" until the next time that run should be called.- Returns:
- Time to wait until next exec. 0 indicates that the unit should not be executed, and the engine should just wait for a reschedule request.
 
 - 
setControllervoid setController(SchedulingController controller) Called by the execution engine, passes in a scheduling controller that the self scheduling runnable can use to request a reschedule.- Parameters:
- controller- the scheduling controller which is to be used to request the reschuled run
 
 - 
isCanceleddefault boolean isCanceled() - Returns:
- boolean - returns true if the runnable has been interrupted while executing
 
 
- 
 
-