Class SoSystemTimerTask

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.sensors.SoSystemTimerTask
All Implemented Interfaces:
SafeDisposable

public class SoSystemTimerTask extends Inventor implements SafeDisposable
Interface used by SoSystemTimer to execute a task. This object is used by SoSystemTimer to execute a custom action when the timer is triggered

SoSensorHandler, SoSystemTimer

  • Method Details

    • isDisposable

      public boolean isDisposable()
      Description copied from interface: SafeDisposable
      Returns a boolean flag which indicates if it is safe to call SafeDisposable.dispose() on the object.
      Specified by:
      isDisposable in interface SafeDisposable
      Returns:
      true if the object can be disposed in a safe manner
    • dispose

      public boolean dispose()
      Description copied from class: Inventor
      Explicitly call this method to force object to dispose its unmanaged resources. The object may not be reused in the application code after this call.
      Specified by:
      dispose in interface SafeDisposable
      Overrides:
      dispose in class Inventor
      Returns:
      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.
    • run

      public void run()
      This method is executed by SoSystemTimer when it is triggered .