org.apache.activemq.thread
Class Scheduler
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.thread.Scheduler
- All Implemented Interfaces:
- Service
public final class Scheduler
- extends ServiceSupport
Constructor Summary |
Scheduler(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Scheduler
public Scheduler(java.lang.String name)
executePeriodically
public void executePeriodically(java.lang.Runnable task,
long period)
schedualPeriodically
public void schedualPeriodically(java.lang.Runnable task,
long period)
cancel
public void cancel(java.lang.Runnable task)
executeAfterDelay
public void executeAfterDelay(java.lang.Runnable task,
long redeliveryDelay)
shutdown
public void shutdown()
doStart
protected void doStart()
throws java.lang.Exception
- Specified by:
doStart
in class ServiceSupport
- Throws:
java.lang.Exception
doStop
protected void doStop(ServiceStopper stopper)
throws java.lang.Exception
- Specified by:
doStop
in class ServiceSupport
- Throws:
java.lang.Exception
getName
public java.lang.String getName()
Copyright © 2005-2012. All Rights Reserved.