Class RepeatableAction

  • All Implemented Interfaces:

    
    public final class RepeatableAction
    
                        

    Repeat the action until stop is called.

    • Constructor Detail

      • RepeatableAction

        RepeatableAction(Handler handler, Long initialDelayTimeMillis, Long throttleTimeMillis, RepeatableAction.RepeatableActionCallback callback)
        Constructs a new RepeatableAction.
        Parameters:
        handler - the handler to be executed.
        initialDelayTimeMillis - the time to delay first execution.
        throttleTimeMillis - the throttle time millis the termination of one execution and the commencement of the next.
        callback - the callback to execute.
    • Method Detail

      • start

         final Unit start()

        Starts this action.

      • stop

         final Unit stop()

        Stops this action.