org.ceno.tracker.cli.internal
Class JDKPeriodicSchedulerService

java.lang.Object
  extended by org.ceno.tracker.cli.internal.JDKPeriodicSchedulerService
All Implemented Interfaces:
IPeriodicSchedulerService

public class JDKPeriodicSchedulerService
extends java.lang.Object
implements IPeriodicSchedulerService

Since:
0.0.3
Author:
Andre Albert <andre.albert82@googlemail.com>

Constructor Summary
JDKPeriodicSchedulerService()
           
 
Method Summary
 void deregister(ISchedulable schedulable)
          remove object from scheduler. will not be called anymore
 void register(ISchedulable schedulable, java.lang.Integer interval)
          
 void start()
          Starts all registered schedulables.
 void stop()
          Cancels all timers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKPeriodicSchedulerService

public JDKPeriodicSchedulerService()
Method Detail

deregister

public void deregister(ISchedulable schedulable)
remove object from scheduler. will not be called anymore

Specified by:
deregister in interface IPeriodicSchedulerService

register

public void register(ISchedulable schedulable,
                     java.lang.Integer interval)

Specified by:
register in interface IPeriodicSchedulerService
Parameters:
interval -

start

public void start()
Starts all registered schedulables. Each with a separate thread of execution

Specified by:
start in interface IPeriodicSchedulerService

stop

public void stop()
Cancels all timers

Specified by:
stop in interface IPeriodicSchedulerService