Class AttemptRuleDefault
java.lang.Object
org.spincast.plugins.attemptslimiter.AttemptRuleDefault
- All Implemented Interfaces:
AttemptRule
-
Constructor Summary
ConstructorsConstructorDescriptionAttemptRuleDefault(String actionName, int nbrMaxAttemptsPerDuration, Duration duration) -
Method Summary
Modifier and TypeMethodDescriptionThe action to protect.The duration in which a maximum number of attempts is allowed.intThe number of allowed attempts in a given duration.
-
Constructor Details
-
AttemptRuleDefault
-
-
Method Details
-
getActionName
Description copied from interface:AttemptRuleThe action to protect.- Specified by:
getActionNamein interfaceAttemptRule
-
getNbrMaxAttemptsPerDuration
public int getNbrMaxAttemptsPerDuration()Description copied from interface:AttemptRuleThe number of allowed attempts in a given duration.- Specified by:
getNbrMaxAttemptsPerDurationin interfaceAttemptRule
-
getDuration
Description copied from interface:AttemptRuleThe duration in which a maximum number of attempts is allowed.- Specified by:
getDurationin interfaceAttemptRule
-