org.jboss.mx.util
Class RunnableScheduler

java.lang.Object
  extended byorg.jboss.mx.util.RunnableScheduler
All Implemented Interfaces:
java.lang.Runnable

public class RunnableScheduler
extends java.lang.Object
implements java.lang.Runnable

A runnable scheduler.

The scheduler needs to be started to do real work. To add work to the scheduler, create a SchedulableRunnable and set the scheduler. When the next run has passed the work is performed.

See Also:
SchedulableRunnable (src)

Constructor Summary
RunnableScheduler()
          Constructs a new runnable scheduler.
 
Method Summary
 void run()
          Run the scheduler
 void start()
          Start the scheduler
 void stop()
          Stop the scheduler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnableScheduler

public RunnableScheduler()
Constructs a new runnable scheduler.

Method Detail

start

public void start()
Start the scheduler


stop

public void stop()
Stop the scheduler


run

public void run()
Run the scheduler

Specified by:
run in interface java.lang.Runnable