Class ActionThrottle


  • public class ActionThrottle
    extends Object
    • Constructor Detail

      • ActionThrottle

        public ActionThrottle​(String name,
                              long minMsBetweenActions)
      • ActionThrottle

        public ActionThrottle​(String name,
                              long minMsBetweenActions,
                              TimeSource timeSource)
      • ActionThrottle

        public ActionThrottle​(String name,
                              long minMsBetweenActions,
                              long lastActionStartedAt)
      • ActionThrottle

        public ActionThrottle​(String name,
                              long minMsBetweenActions,
                              long lastActionStartedAt,
                              TimeSource timeSource)
    • Method Detail

      • reset

        public void reset()
      • markAttemptingAction

        public void markAttemptingAction()
      • minimumWaitBetweenActions

        public void minimumWaitBetweenActions()
      • getLastActionStartedAt

        public Long getLastActionStartedAt()