public class TimerScheduler extends AbstractLifeCycle implements Scheduler
AbstractLifeCycle.AbstractLifeCycleListener
Scheduler.Task
LifeCycle.Listener
Constructor and Description |
---|
TimerScheduler() |
TimerScheduler(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
Scheduler.Task |
schedule(Runnable task,
long delay,
TimeUnit units) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public TimerScheduler()
public TimerScheduler(String name)
protected void doStart() throws Exception
doStart
in class AbstractLifeCycle
Exception
protected void doStop() throws Exception
doStop
in class AbstractLifeCycle
Exception
public Scheduler.Task schedule(Runnable task, long delay, TimeUnit units)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.