Class SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask
java.lang.Object
org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
org.spincast.plugins.formsprotection.doublesubmit.SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask
- All Implemented Interfaces:
org.quartz.Job
,SpincastScheduledTask
public class SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask
extends SpincastScheduledTaskBase
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask
(SpincastFormsProtectionConfig spincastFormsDoubleSubmitProtectionConfig, com.google.common.base.Optional<SpincastFormsDoubleSubmitProtectionRepository> spincastFormsDoubleSubmitProtectionRepositoryOptional) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
void
executeSafe
(org.quartz.JobExecutionContext context) To override to implement the actual ScheduledTask action.protected SpincastFormsProtectionConfig
org.quartz.Trigger
When to run this task?Methods inherited from class org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
execute
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask
@Inject public SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask(SpincastFormsProtectionConfig spincastFormsDoubleSubmitProtectionConfig, com.google.common.base.Optional<SpincastFormsDoubleSubmitProtectionRepository> spincastFormsDoubleSubmitProtectionRepositoryOptional)
-
-
Method Details
-
getSpincastFormsDoubleSubmitProtectionConfig
-
getSpincastFormsDoubleSubmitProtectionRepository
protected SpincastFormsDoubleSubmitProtectionRepository getSpincastFormsDoubleSubmitProtectionRepository() -
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
public 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
-
deletedOldProtectionIdsAfterXMinutes
protected int deletedOldProtectionIdsAfterXMinutes()
-