Package org.apache.jena.atlas.data
Interface ThresholdPolicy<E>
-
- All Known Implementing Classes:
ThresholdPolicyCount
public interface ThresholdPolicy<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidincrement(E item)Call this method each time to increment the policy's threshold count.booleanisThresholdExceeded()Determines whether or not the configured threshold has been exceeded for this policy.voidreset()Reset the policy back to the initial state.
-
-
-
Method Detail
-
increment
void increment(E item)
Call this method each time to increment the policy's threshold count.- Parameters:
item- The item that was added.
-
isThresholdExceeded
boolean isThresholdExceeded()
Determines whether or not the configured threshold has been exceeded for this policy.- Returns:
trueif the threshold has been reached;falseotherwise.
-
reset
void reset()
Reset the policy back to the initial state.
-
-