public abstract class SoSystemTimer extends Inventor implements SafeDisposable
SoSystemTimerTask
(given by the setTask method).
See also:
SoSensorHandler
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
boolean |
dispose()
Explicitly call this method to force object to dispose its unmanaged
resources.
|
boolean |
isDisposable()
Returns a boolean flag which indicates if it is safe to call
SafeDisposable.dispose() on the object. |
boolean |
isPending()
Return true if the timer is running.
|
void |
setDelay(int time)
Set the timer's timeout in milliseconds.
|
void |
setRepeat(boolean flag)
If set to true, the timer will be triggered periodically at the rate defined by setDelay.
|
void |
setTask(SoSystemTimerTask task)
Sets the task executed when the timer is triggered.
|
void |
start()
Start the timer.
|
void |
stop()
Stop the timer.
|
getNativeResourceHandle
public boolean isDisposable()
SafeDisposable
SafeDisposable.dispose()
on the object.isDisposable
in interface SafeDisposable
true
if the object can be disposed in a safe mannerpublic boolean dispose()
Inventor
dispose
in interface SafeDisposable
dispose
in class Inventor
true
if this object native resources were successfully
disposed; false
if it was already disposed or no
native resources has been registered for this object.public void stop()
public void start()
public void setRepeat(boolean flag)
public void setTask(SoSystemTimerTask task)
public boolean isPending()
public void setDelay(int time)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com