public.javadoc.org.spincast.plugins.attemptslimiter.AttemptRuleDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
AttemptRuleDefault (org.spincast:spincast-framework 2.1.1 API)
Class AttemptRuleDefault
java.lang.Object
org.spincast.plugins.attemptslimiter.AttemptRuleDefault
- All Implemented Interfaces:
AttemptRule
-
Constructor Summary
Constructor
Description
AttemptRuleDefault(String actionName,
int nbrMaxAttemptsPerDuration,
Duration duration)
-
Method Summary
Modifier and Type
Method
Description
The action to protect.
The duration in which a maximum number
of attempts is allowed.
int
The number of allowed attempts in a given
duration.
-
Constructor Details
-
AttemptRuleDefault
-
Method Details
-
getActionName
Description copied from interface: AttemptRule
The action to protect.
- Specified by:
getActionName
in interface AttemptRule
-
getNbrMaxAttemptsPerDuration
public int getNbrMaxAttemptsPerDuration()
Description copied from interface: AttemptRule
The number of allowed attempts in a given
duration.
- Specified by:
getNbrMaxAttemptsPerDuration
in interface AttemptRule
-
getDuration
Description copied from interface: AttemptRule
The duration in which a maximum number
of attempts is allowed.
- Specified by:
getDuration
in interface AttemptRule