public class TimerScheduler extends AbstractLifeCycle implements Scheduler, java.lang.Runnable
AbstractLifeCycle.AbstractLifeCycleListener
Scheduler.Task
LifeCycle.Listener
Constructor and Description |
---|
TimerScheduler() |
TimerScheduler(java.lang.String name,
boolean daemon) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
run() |
Scheduler.Task |
schedule(java.lang.Runnable task,
long delay,
java.util.concurrent.TimeUnit units) |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
public TimerScheduler()
public TimerScheduler(java.lang.String name, boolean daemon)
protected void doStart() throws java.lang.Exception
doStart
in class AbstractLifeCycle
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class AbstractLifeCycle
java.lang.Exception
public Scheduler.Task schedule(java.lang.Runnable task, long delay, java.util.concurrent.TimeUnit units)
public void run()
run
in interface java.lang.Runnable
Copyright © 1995–2023 Webtide. All rights reserved.