|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThresholdPolicy<E>
Method Summary | |
---|---|
void |
increment(E item)
Call this method each time to increment the policy's threshold count. |
boolean |
isThresholdExceeded()
Determines whether or not the configured threshold has been exceeded for this policy. |
void |
reset()
Reset the policy back to the initial state. |
Method Detail |
---|
void increment(E item)
item
- The item that was added.boolean isThresholdExceeded()
true
if the threshold has been reached; false
otherwise.void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |