
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 1.2.0 API)
org.spincast.plugins.attemptslimiter
Class AttemptRuleDefault
- java.lang.Object
-
- org.spincast.plugins.attemptslimiter.AttemptRuleDefault
-
- All Implemented Interfaces:
- AttemptRule
public class AttemptRuleDefault
extends Object
implements AttemptRule
-
-
Constructor Summary
Constructors
Constructor and Description
AttemptRuleDefault(String actionName,
int nbrMaxAttemptsPerDuration,
Duration duration)
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Method Detail
-
getActionName
public String 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
public Duration getDuration()
Description copied from interface: AttemptRule
The duration in which a maximum number
of attempts is allowed.
- Specified by:
getDuration
in interface AttemptRule
Copyright © 2019. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy