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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.quartz.JobExecutionContext context) The actions to run.protected abstract voidexecuteSafe(org.quartz.JobExecutionContext context) To override to implement the actual ScheduledTask action.abstract org.quartz.TriggerWhen 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:SpincastScheduledTaskThe actions to run.- Specified by:
executein interfaceorg.quartz.Job- Specified by:
executein interfaceSpincastScheduledTask- Throws:
org.quartz.JobExecutionException
-
getTrigger
public abstract org.quartz.Trigger getTrigger()Description copied from interface:SpincastScheduledTaskWhen to run this task?- Specified by:
getTriggerin 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.
-