public class SpincastAttemptsLimiterPluginConfigDefault extends Object implements SpincastAttemptsLimiterPluginConfig
| Constructor and Description |
|---|
SpincastAttemptsLimiterPluginConfigDefault() |
| Modifier and Type | Method and Description |
|---|---|
AttemptsAutoIncrementType |
getDefaultAttemptAutoIncrementType()
Should the
AttemptsManager.attempt(String, org.spincast.plugins.attemptslimiter.AttemptCriteria...)
method automatically increment the number of attempts by default,
when not specified otherwise? |
int |
getDeleteOldAttemptsScheduledTaskIntervalMinutes()
The number of minutes between two launches of
the scheduled task that will clean the database from old
attempts, if
SpincastAttemptsLimiterPluginConfig.isAutoBindDeleteOldAttemptsScheduledTask()
is enabled. |
boolean |
isAutoBindDeleteOldAttemptsScheduledTask()
Should the scheduled task to delete old attempts in the database
be automatically added?
|
public SpincastAttemptsLimiterPluginConfigDefault()
public boolean isAutoBindDeleteOldAttemptsScheduledTask()
SpincastAttemptsLimiterPluginConfigisAutoBindDeleteOldAttemptsScheduledTask in interface SpincastAttemptsLimiterPluginConfigpublic int getDeleteOldAttemptsScheduledTaskIntervalMinutes()
SpincastAttemptsLimiterPluginConfigSpincastAttemptsLimiterPluginConfig.isAutoBindDeleteOldAttemptsScheduledTask()
is enabled.getDeleteOldAttemptsScheduledTaskIntervalMinutes in interface SpincastAttemptsLimiterPluginConfigpublic AttemptsAutoIncrementType getDefaultAttemptAutoIncrementType()
SpincastAttemptsLimiterPluginConfigAttemptsManager.attempt(String, org.spincast.plugins.attemptslimiter.AttemptCriteria...)
method automatically increment the number of attempts by default,
when not specified otherwise?
If you don't let the method increment the number of attempts,
you are responsible to call Attempt.incrementAttemptsCount()
by yourself, when required.
Defaults to AttemptsAutoIncrementType.ALWAYS.
getDefaultAttemptAutoIncrementType in interface SpincastAttemptsLimiterPluginConfigCopyright © 2018. All rights reserved.