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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask(SpincastFormsProtectionConfig spincastFormsDoubleSubmitProtectionConfig, com.google.common.base.Optional<SpincastFormsDoubleSubmitProtectionRepository> spincastFormsDoubleSubmitProtectionRepositoryOptional) -
Method Summary
Modifier and TypeMethodDescriptionprotected intvoidexecuteSafe(org.quartz.JobExecutionContext context) To override to implement the actual ScheduledTask action.protected SpincastFormsProtectionConfigorg.quartz.TriggerWhen 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:SpincastScheduledTaskWhen to run this task?- Specified by:
getTriggerin interfaceSpincastScheduledTask- Specified by:
getTriggerin classSpincastScheduledTaskBase
-
executeSafe
public void executeSafe(org.quartz.JobExecutionContext context) Description copied from class:SpincastScheduledTaskBaseTo override to implement the actual ScheduledTask action.Will only be called if the ScheduledTask isn't already running.
- Specified by:
executeSafein classSpincastScheduledTaskBase
-
deletedOldProtectionIdsAfterXMinutes
protected int deletedOldProtectionIdsAfterXMinutes()
-