Package org.apache.solr.cloud
Class ActionThrottle
- java.lang.Object
-
- org.apache.solr.cloud.ActionThrottle
-
public class ActionThrottle extends Object
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getLastActionStartedAt()
void
markAttemptingAction()
void
minimumWaitBetweenActions()
void
reset()
-
-
-
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()
-
-