Class DeleteOldAttemptsScheduledTask
java.lang.Object
org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
org.spincast.plugins.attemptslimiter.DeleteOldAttemptsScheduledTask
- All Implemented Interfaces:
org.quartz.Job
,SpincastScheduledTask
-
Field Summary
Fields inherited from class org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
logger
-
Constructor Summary
ConstructorDescriptionDeleteOldAttemptsScheduledTask
(SpincastAttemptsLimiterPluginConfig spincastAttemptsLimiterPluginConfig, SpincastAttemptsLimiterPluginRepository spincastAttemptsLimiterPluginRepository, AttemptsManager attemptsManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeSafe
(org.quartz.JobExecutionContext context) To override to implement the actual ScheduledTask action.protected AttemptsManager
protected SpincastAttemptsLimiterPluginConfig
protected SpincastAttemptsLimiterPluginRepository
org.quartz.Trigger
When to run this task?Methods inherited from class org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
execute
-
Constructor Details
-
DeleteOldAttemptsScheduledTask
@Inject public DeleteOldAttemptsScheduledTask(SpincastAttemptsLimiterPluginConfig spincastAttemptsLimiterPluginConfig, SpincastAttemptsLimiterPluginRepository spincastAttemptsLimiterPluginRepository, AttemptsManager attemptsManager)
-
-
Method Details
-
getSpincastAttemptsLimiterPluginConfig
-
getSpincastAttemptsLimiterPluginRepository
-
getAttemptsManager
-
getTrigger
public org.quartz.Trigger getTrigger()Description copied from interface:SpincastScheduledTask
When to run this task?- Specified by:
getTrigger
in interfaceSpincastScheduledTask
- Specified by:
getTrigger
in classSpincastScheduledTaskBase
-
executeSafe
protected void executeSafe(org.quartz.JobExecutionContext context) Description copied from class:SpincastScheduledTaskBase
To override to implement the actual ScheduledTask action.Will only be called if the ScheduledTask isn't already running.
- Specified by:
executeSafe
in classSpincastScheduledTaskBase
-