Package org.eclipse.jetty.util.thread
Class TimerScheduler
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.thread.TimerScheduler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Scheduler
Scheduler.Task
-
-
Constructor Summary
Constructors Constructor Description TimerScheduler()TimerScheduler(String name, boolean daemon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop()voidrun()Scheduler.Taskschedule(Runnable task, long delay, TimeUnit units)-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
-
-
-
Constructor Detail
-
TimerScheduler
public TimerScheduler()
-
TimerScheduler
public TimerScheduler(String name, boolean daemon)
-
-
Method Detail
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classAbstractLifeCycle- Throws:
Exception
-
doStop
protected void doStop() throws Exception- Overrides:
doStopin classAbstractLifeCycle- Throws:
Exception
-
schedule
public Scheduler.Task schedule(Runnable task, long delay, TimeUnit units)
-
-