Interface SpincastAttemptsLimiterPluginRepository
public interface SpincastAttemptsLimiterPluginRepository
Repository for attempts.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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 Details
-
saveNewAttempt
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
Deletes all attempts of the action older than the specified date. -
deleteAttempts
Deletes all attempts of the specified action and criterias.
-