public class TimeoutTimer extends Object
Constructor and Description |
---|
TimeoutTimer(long timeout,
Runnable runnable)
Creates a timeout timer that will fire in the timeout.
|
Modifier and Type | Method and 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.
|
public TimeoutTimer(long timeout, Runnable runnable)
timeout
- The timeout in milliseconds.runnable
- The runnable to call at timeout.iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.