Package com.iizigo.swt
Class TimeoutTimer
java.lang.Object
com.iizigo.swt.TimeoutTimer
Class that handles a timeout timer that can be started, retriggered, stopped.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- TimeoutTimer- (long timeout, Runnable runnable) Creates a timeout timer that will fire in the timeout.
- Method SummaryModifier and TypeMethodDescription- booleanChecks if the timer is scheduled.- voidStarts or re-triggers the timer to the initial timeout.- void- stop()Stops the timer.
- Constructor Details- TimeoutTimerCreates a timeout timer that will fire in the timeout.- Parameters:
- timeout- The timeout in milliseconds.
- runnable- The runnable to call at timeout.
 
 
- Method Details- stoppublic void stop()Stops the timer.
- retriggerpublic void retrigger()Starts or re-triggers the timer to the initial timeout.
- isScheduledpublic boolean isScheduled()Checks if the timer is scheduled.- Returns:
- true if it will fire event within the timeout.