org.qi4j.library.scheduler.slaves
Class SchedulerPulse
java.lang.Object
org.qi4j.library.scheduler.slaves.SchedulerPulse
- All Implemented Interfaces:
- Runnable
public class SchedulerPulse
- extends Object
Heartbeat of the Scheduler
, load runnable Task
s and enqueue them in the SchedulerWorkQueue
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final org.slf4j.Logger LOGGER
rhythm
protected final Long rhythm
commitSuicide
protected Boolean commitSuicide
SchedulerPulse
public SchedulerPulse(@Uses
Long rhythm,
@Uses
SchedulerWorkQueue workQueue)
onRun
protected void onRun()
run
public void run()
- Specified by:
run
in interface Runnable
suicideAfterCurrentCycle
public final void suicideAfterCurrentCycle()