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,
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 void reset()
public void markAttemptingAction()
public void minimumWaitBetweenActions()
public Long getLastActionStartedAt()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.