public class ActionThrottle extends Object
Constructor and Description |
---|
ActionThrottle(String name,
long minMsBetweenActions) |
ActionThrottle(String name,
long minMsBetweenActions,
long lastActionStartedAt) |
ActionThrottle(String name,
long minMsBetweenActions,
long lastActionStartedAt,
TimeSource timeSource) |
ActionThrottle(String name,
long minMsBetweenActions,
TimeSource timeSource) |
Modifier and Type | Method and Description |
---|---|
Long |
getLastActionStartedAt() |
void |
markAttemptingAction() |
void |
minimumWaitBetweenActions() |
void |
reset() |
public ActionThrottle(String name, long minMsBetweenActions)
public ActionThrottle(String name, long minMsBetweenActions, TimeSource timeSource)
public ActionThrottle(String name, long minMsBetweenActions, long lastActionStartedAt)
public ActionThrottle(String name, long minMsBetweenActions, long lastActionStartedAt, TimeSource timeSource)
public void reset()
public void markAttemptingAction()
public void minimumWaitBetweenActions()
public Long getLastActionStartedAt()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.