public class SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask extends SpincastScheduledTaskBase
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask(SpincastFormsProtectionConfig spincastFormsDoubleSubmitProtectionConfig,
com.google.common.base.Optional<SpincastFormsDoubleSubmitProtectionRepository> spincastFormsDoubleSubmitProtectionRepositoryOptional) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
deletedOldProtectionIdsAfterXMinutes() |
void |
executeSafe(org.quartz.JobExecutionContext context)
To override to implement the actual ScheduledTask action.
|
protected SpincastFormsProtectionConfig |
getSpincastFormsDoubleSubmitProtectionConfig() |
protected SpincastFormsDoubleSubmitProtectionRepository |
getSpincastFormsDoubleSubmitProtectionRepository() |
org.quartz.Trigger |
getTrigger()
When to run this task?
|
execute@Inject public SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask(SpincastFormsProtectionConfig spincastFormsDoubleSubmitProtectionConfig, com.google.common.base.Optional<SpincastFormsDoubleSubmitProtectionRepository> spincastFormsDoubleSubmitProtectionRepositoryOptional)
protected SpincastFormsProtectionConfig getSpincastFormsDoubleSubmitProtectionConfig()
protected SpincastFormsDoubleSubmitProtectionRepository getSpincastFormsDoubleSubmitProtectionRepository()
public org.quartz.Trigger getTrigger()
SpincastScheduledTaskgetTrigger in interface SpincastScheduledTaskgetTrigger in class SpincastScheduledTaskBasepublic void executeSafe(org.quartz.JobExecutionContext context)
SpincastScheduledTaskBaseWill only be called if the ScheduledTask isn't already running.
executeSafe in class SpincastScheduledTaskBaseprotected int deletedOldProtectionIdsAfterXMinutes()
Copyright © 2019. All rights reserved.