public class AttemptRuleDefault extends Object implements AttemptRule
| Constructor and Description |
|---|
AttemptRuleDefault(String actionName,
int nbrMaxAttemptsPerDuration,
Duration duration) |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionName()
The action to protect.
|
Duration |
getDuration()
The duration in which a maximum number
of attempts is allowed.
|
int |
getNbrMaxAttemptsPerDuration()
The number of allowed attempts in a given
duration.
|
public String getActionName()
AttemptRulegetActionName in interface AttemptRulepublic int getNbrMaxAttemptsPerDuration()
AttemptRulegetNbrMaxAttemptsPerDuration in interface AttemptRulepublic Duration getDuration()
AttemptRulegetDuration in interface AttemptRuleCopyright © 2018. All rights reserved.