public.javadoc.org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastScheduledTaskBase (org.spincast:spincast-framework 1.14.0 API)
org.spincast.plugins.scheduledtasks
Class SpincastScheduledTaskBase
- java.lang.Object
-
- org.spincast.plugins.scheduledtasks.SpincastScheduledTaskBase
-
- All Implemented Interfaces:
- org.quartz.Job, SpincastScheduledTask
- Direct Known Subclasses:
- DeleteOldAttemptsScheduledTask, SpincastFormsDoubleSubmitDeleteOldProtectionIdsScheduledTask, SpincastSessionDeleteOldSessionsScheduledTask
public abstract class SpincastScheduledTaskBase
extends Object
implements SpincastScheduledTask
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors
Constructor and Description
SpincastScheduledTaskBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type
Method and Description
void
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
getTrigger()
When to run this task?
-
-
Method Detail
-
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 interface org.quartz.Job
- Specified by:
execute
in interface SpincastScheduledTask
- 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 interface SpincastScheduledTask
-
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.
Copyright © 2019. All rights reserved.