Class TimeOutManager

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean start(Byte timeOutScenario, Long delayInMillis) Calling start will start counting till given timeout occurs.
      final Unit cancel(Byte timeOutScenario) Calling cancel will cancel all scheduled timeOuts.
      final static Unit setTimeOutIdForTest(Byte id)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • start

        @UiThread() final Boolean start(Byte timeOutScenario, Long delayInMillis)

        Calling start will start counting till given timeout occurs. At given any instance there can be only one single timeOut handled. If there was any previous scheduled timeOut it will be canceled first then new one will be scheduled.

        Parameters:
        timeOutScenario - the timeout scenario to start
        delayInMillis - the timeout value
        Returns:

        true if successfully scheduled, otherwise false

      • cancel

        @UiThread() final Unit cancel(Byte timeOutScenario)

        Calling cancel will cancel all scheduled timeOuts.