Package com.iizix
Class TimeoutTimer
- java.lang.Object
- com.iizix.TimeoutTimer
public class TimeoutTimer extends java.lang.Object
Class that handles a timeout timer that can be started, retriggered, stopped.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description TimeoutTimer(long timeout, java.lang.Runnable runnable)
Creates a timeout timer that will fire in the timeout.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isScheduled()
Checks if the timer is scheduled.void
retrigger()
Starts or re-triggers the timer to the initial timeout.void
stop()
Stops the timer.