private static class HitsThresholdChecker.GlobalHitsThresholdChecker extends HitsThresholdChecker
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicLong |
globalHitCount |
private int |
totalHitsThreshold |
| Constructor and Description |
|---|
GlobalHitsThresholdChecker(int totalHitsThreshold) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHitsThreshold() |
void |
incrementHitCount() |
boolean |
isThresholdReached() |
ScoreMode |
scoreMode() |
create, createSharedprivate final int totalHitsThreshold
private final java.util.concurrent.atomic.AtomicLong globalHitCount
public GlobalHitsThresholdChecker(int totalHitsThreshold)
public void incrementHitCount()
incrementHitCount in class HitsThresholdCheckerpublic boolean isThresholdReached()
isThresholdReached in class HitsThresholdCheckerpublic ScoreMode scoreMode()
scoreMode in class HitsThresholdCheckerpublic int getHitsThreshold()
getHitsThreshold in class HitsThresholdChecker