public.javadoc.org.spincast.plugins.attemptslimiter.SpincastAttemptsLimiterPluginRepository.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.
SpincastAttemptsLimiterPluginRepository (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.attemptslimiter
Interface SpincastAttemptsLimiterPluginRepository
-
public interface SpincastAttemptsLimiterPluginRepository
Repository for attempts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
deleteAttempts(String actionName,
AttemptCriteria... criterias)
Deletes all attempts of the specified action and criterias.
void
deleteAttemptsOlderThan(String actionName,
Instant date)
Deletes all attempts of the action older than
the specified date.
Map<String,Integer>
getAttemptsNumberPerCriteriaSince(String actionName,
Instant sinceDate,
AttemptCriteria... criterias)
Returne the number of attempt made for an action, by criterias.
void
saveNewAttempt(String actionName,
AttemptCriteria... criterias)
Save a new attempt for an action, given some criterias.
-
-
Method Detail
-
saveNewAttempt
void saveNewAttempt(String actionName,
AttemptCriteria... criterias)
Save a new attempt for an action, given some criterias.
-
getAttemptsNumberPerCriteriaSince
Map<String,Integer> getAttemptsNumberPerCriteriaSince(String actionName,
Instant sinceDate,
AttemptCriteria... criterias)
Returne the number of attempt made for an action, by criterias.
The keys are the criterias' names.
-
deleteAttemptsOlderThan
void deleteAttemptsOlderThan(String actionName,
Instant date)
Deletes all attempts of the action older than
the specified date.
-
deleteAttempts
void deleteAttempts(String actionName,
AttemptCriteria... criterias)
Deletes all attempts of the specified action and criterias.
Copyright © 2019. All rights reserved.