| Package | Description |
|---|---|
| org.spincast.plugins.attemptslimiter |
| Modifier and Type | Method and Description |
|---|---|
AttemptCriteria[] |
AttemptDefault.getCriterias() |
static AttemptCriteria |
AttemptCriteria.of(String criteriaName,
String value) |
| Modifier and Type | Method and Description |
|---|---|
Attempt |
AttemptsManagerDefault.attempt(String actionName,
AttemptCriteria... criterias) |
Attempt |
AttemptsManager.attempt(String attemptName,
AttemptCriteria... criterias)
Gets the current
Attempt, given the action to protect
and criterias. |
Attempt |
AttemptsManagerDefault.attempt(String actionName,
AttemptsAutoIncrementType attemptsAutoIncrementType,
AttemptCriteria... criterias) |
Attempt |
AttemptsManager.attempt(String attemptName,
AttemptsAutoIncrementType attemptsAutoIncrementType,
AttemptCriteria... criterias)
Gets the current
Attempt, given the action to protect
and criterias. |
Attempt |
AttemptFactory.createAttempt(boolean maxReached,
String actionName,
AttemptCriteria... criterias) |
void |
SpincastAttemptsLimiterPluginRepository.deleteAttempts(String actionName,
AttemptCriteria... criterias)
Deletes all attempts of the specified action and criterias.
|
Map<String,Integer> |
SpincastAttemptsLimiterPluginRepository.getAttemptsNumberPerCriteriaSince(String actionName,
Instant sinceDate,
AttemptCriteria... criterias)
Returne the number of attempt made for an action, by criterias.
|
void |
SpincastAttemptsLimiterPluginRepository.saveNewAttempt(String actionName,
AttemptCriteria... criterias)
Save a new attempt for an action, given some criterias.
|
| Constructor and Description |
|---|
AttemptDefault(SpincastAttemptsLimiterPluginRepository spincastAttemptsLimiterPlguinRepository,
SpincastAttemptsLimiterPluginConfig spincastAttemptsLimiterPluginConfig,
boolean maxReached,
String actionName,
AttemptCriteria... criterias) |
Copyright © 2019. All rights reserved.