org.qi4j.library.scheduler.slaves
Class SchedulerGarbageCollector

java.lang.Object
  extended by org.qi4j.library.scheduler.slaves.SchedulerGarbageCollector
All Implemented Interfaces:
Runnable

public class SchedulerGarbageCollector
extends Object

Continuously prune non-used and non-durable ScheduleEntitys.


Field Summary
protected  Boolean commitSuicide
           
protected static org.slf4j.Logger LOGGER
           
protected  Long rhythm
           
 
Constructor Summary
SchedulerGarbageCollector(Long rhythm)
           
 
Method Summary
protected  void onRun()
           
 void run()
           
 void suicideAfterCurrentCycle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final org.slf4j.Logger LOGGER

rhythm

protected final Long rhythm

commitSuicide

protected Boolean commitSuicide
Constructor Detail

SchedulerGarbageCollector

public SchedulerGarbageCollector(@Uses
                                 Long rhythm)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

suicideAfterCurrentCycle

public final void suicideAfterCurrentCycle()

onRun

protected void onRun()