org.jboss.mx.util
Class RunnableScheduler

java.lang.Object
  extended by org.jboss.mx.util.RunnableScheduler

public class RunnableScheduler
extends Object

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.

Version:
$Revision: 81019 $
Author:
Adrian Brock.
See Also:
SchedulableRunnable

Constructor Summary
RunnableScheduler()
          Constructs a new runnable scheduler.
RunnableScheduler(org.jboss.util.threadpool.ThreadPool threadPool)
          Constructs a new runnable scheduler.
 
Method Summary
 void run()
          Runs the scheduler.
 void start()
          Starts the scheduler.
 void stop()
          Stops the scheduler, cancels all submitted jobs.
 
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.


RunnableScheduler

public RunnableScheduler(org.jboss.util.threadpool.ThreadPool threadPool)
Constructs a new runnable scheduler.

Method Detail

start

public void start()
Starts the scheduler.


stop

public void stop()
Stops the scheduler, cancels all submitted jobs.


run

public void run()
Runs the scheduler.



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.