public final class Scheduler extends ServiceSupport
Modifier and Type | Method and Description |
---|---|
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() |
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
public Scheduler(String name)
public void executePeriodically(Runnable task, long period)
public void schedualPeriodically(Runnable task, long period)
public void cancel(Runnable task)
public void executeAfterDelay(Runnable task, long redeliveryDelay)
public void shutdown()
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop(ServiceStopper stopper) throws Exception
doStop
in class ServiceSupport
Exception
public String getName()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.