- All Known Implementing Classes:
isMaxReached() method to know
if the action associated with this attempt should
be blocked or allowed.
isMaxReachedboolean isMaxReached()Max number of attempts reached. Your code should deny the protected action.
incrementAttemptsCountvoid incrementAttemptsCount()Increments the number of attempts.
You have to call this method manually if you don't let the
AttemptsManager.attempt(String, org.spincast.plugins.attemptslimiter.AttemptCriteria...)method do it.
Note that calling this method multiple times won't result in multiple increments. The count will be incremented only once!
deleteAttemptsvoid deleteAttempts()Deletes all attempts for this action and criterias.
In some situations, you may want to clear the attempts when an action is succesfull.