Package com.iizix
Class TimeoutTimer
- java.lang.Object
- com.iizix.TimeoutTimer
public class TimeoutTimer extends java.lang.ObjectClass 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 booleanisScheduled()Checks if the timer is scheduled.voidretrigger()Starts or re-triggers the timer to the initial timeout.voidstop()Stops the timer.