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, createShared
private final int totalHitsThreshold
private final java.util.concurrent.atomic.AtomicLong globalHitCount
public GlobalHitsThresholdChecker(int totalHitsThreshold)
public void incrementHitCount()
incrementHitCount
in class HitsThresholdChecker
public boolean isThresholdReached()
isThresholdReached
in class HitsThresholdChecker
public ScoreMode scoreMode()
scoreMode
in class HitsThresholdChecker
public int getHitsThreshold()
getHitsThreshold
in class HitsThresholdChecker