org.apache.activemq.thread
Class Scheduler

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.thread.Scheduler
All Implemented Interfaces:
Service

public final class Scheduler
extends ServiceSupport


Constructor Summary
Scheduler(String name)
           
 
Method Summary
 void cancel(Runnable task)
           
protected  void doStart()
           
protected  void doStop(ServiceStopper stopper)
           
 void executeAfterDelay(Runnable task, long redeliveryDelay)
           
 void executePeriodically(Runnable task, long period)
           
 String getName()
           
 void schedualPeriodically(Runnable task, long period)
           
 void shutdown()
           
 
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheduler

public Scheduler(String name)
Method Detail

executePeriodically

public void executePeriodically(Runnable task,
                                long period)

schedualPeriodically

public void schedualPeriodically(Runnable task,
                                 long period)

cancel

public void cancel(Runnable task)

executeAfterDelay

public void executeAfterDelay(Runnable task,
                              long redeliveryDelay)

shutdown

public void shutdown()

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class ServiceSupport
Throws:
Exception

doStop

protected void doStop(ServiceStopper stopper)
               throws Exception
Specified by:
doStop in class ServiceSupport
Throws:
Exception

getName

public String getName()


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.