public interface ITimerEngine
It can be used to register a timeout for a task that runs in a thread.
When timeout is reached, the method
ITimeoutListener.onTimeout() is called from another
thread, informing the running thread of this timeout. It is up to the running thread to take
It can also handle a scheduled periodic event notification that also runs in a thread.
|Modifier and Type||Method and Description|
Disposes of the engine and disposes of all pending scheduled timers and timeouts.
Checks if engine is diposed or not.
Registers a new timeout for processing.
ITimeoutTask registerTimeout(long timeout, String description, ITimeoutListener listener)
timeout- The timeout in milliseconds, -1 for indefinite.
description- The description of the timeout operation, null for none.
listener- The listener for timeout notification.
NullPointerException- If the
IllegalStateException- If the engine has been disposed of.
iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.