All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.attemptslimiter.SpincastAttemptsLimiterPluginRepository.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastAttemptsLimiterPluginRepository (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.attemptslimiter

Interface SpincastAttemptsLimiterPluginRepository



  • public interface SpincastAttemptsLimiterPluginRepository
    Repository for attempts.
    • 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.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy