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, org.apache.solr.common.util.TimeSource timeSource)
ActionThrottle(String name, long minMsBetweenActions, org.apache.solr.common.util.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, org.apache.solr.common.util.TimeSource timeSource)
-
ActionThrottle
public ActionThrottle(String name, long minMsBetweenActions, long lastActionStartedAt)
-
ActionThrottle
public ActionThrottle(String name, long minMsBetweenActions, long lastActionStartedAt, org.apache.solr.common.util.TimeSource timeSource)
-
-
Method Detail
-
reset
public void reset()
-
markAttemptingAction
public void markAttemptingAction()
-
minimumWaitBetweenActions
public void minimumWaitBetweenActions()
-
getLastActionStartedAt
public Long getLastActionStartedAt()
-
-