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.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Scheduler
Scheduler.Task -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, 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 voiddoStart()Deprecated, for removal: This API element is subject to removal in a future version.Method to override to start the lifecycleprotected voiddoStop()Deprecated, for removal: This API element is subject to removal in a future version.Method to override to stop the lifecyclevoidrun()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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin 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:AbstractLifeCycleMethod to override to stop the lifecycle- Overrides:
doStopin 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:SchedulerSchedules 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.
-
ScheduledExecutorSchedulerinstead.