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
    Description
    protected static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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
    When to run this task?

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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.