Package org.eclipse.jetty.util.thread
Class TimerScheduler
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.thread.TimerScheduler
@Deprecated(since="12.0.9",
forRemoval=true)
public class TimerScheduler
extends AbstractLifeCycle
implements Scheduler, Runnable
Deprecated, for removal: This API element is subject to removal in a future version.
A scheduler based on the JVM
Timer
class.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.TimerScheduler
(String name, boolean daemon) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
Deprecated, for removal: This API element is subject to removal in a future version.Method to override to start the lifecycleprotected void
doStop()
Deprecated, for removal: This API element is subject to removal in a future version.Method to override to stop the lifecyclevoid
run()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Schedules a task to be executed after the given delay.Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, 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
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
TimerScheduler
public TimerScheduler()Deprecated, for removal: This API element is subject to removal in a future version. -
TimerScheduler
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
doStart
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLifeCycle
Method to override to stop the lifecycle- Overrides:
doStop
in classAbstractLifeCycle
- Throws:
Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-
schedule
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Scheduler
Schedules a task to be executed after the given delay.
-
run
public void run()Deprecated, for removal: This API element is subject to removal in a future version.
-
ScheduledExecutorScheduler
instead.