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 |
shutdown() |
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stoppublic Scheduler(String name)
public void executePeriodically(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 ServiceSupportExceptionprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class ServiceSupportExceptionpublic String getName()
Copyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.