Class SpincastScheduledTaskBase
java.lang.Object
org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
- All Implemented Interfaces:
org.quartz.Job
,SpincastScheduledTask
- Direct Known Subclasses:
DeleteOldAttemptsScheduledTask
,SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask
,SpincastSessionDeleteOldSessionsScheduledTask
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.quartz.JobExecutionContext context) The actions to run.protected abstract void
executeSafe
(org.quartz.JobExecutionContext context) To override to implement the actual ScheduledTask action.abstract org.quartz.Trigger
When to run this task?
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastScheduledTaskBase
public SpincastScheduledTaskBase()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException Description copied from interface:SpincastScheduledTask
The actions to run.- Specified by:
execute
in interfaceorg.quartz.Job
- Specified by:
execute
in interfaceSpincastScheduledTask
- Throws:
org.quartz.JobExecutionException
-
getTrigger
public abstract org.quartz.Trigger getTrigger()Description copied from interface:SpincastScheduledTask
When to run this task?- Specified by:
getTrigger
in interfaceSpincastScheduledTask
-
executeSafe
protected abstract void executeSafe(org.quartz.JobExecutionContext context) To override to implement the actual ScheduledTask action.Will only be called if the ScheduledTask isn't already running.
-