Class InterruptablePocTask

java.lang.Object
org.springframework.scheduling.quartz.QuartzJobBean
org.tailormap.api.scheduling.InterruptablePocTask
All Implemented Interfaces:
org.quartz.InterruptableJob, org.quartz.Job, Task

@DisallowConcurrentExecution @PersistJobDataAfterExecution public class InterruptablePocTask extends org.springframework.scheduling.quartz.QuartzJobBean implements Task, org.quartz.InterruptableJob
POC task for testing purposes, this is a task that can be interrupted.
  • Constructor Details

    • InterruptablePocTask

      public InterruptablePocTask()
  • Method Details

    • interrupt

      public void interrupt() throws org.quartz.UnableToInterruptJobException
      Specified by:
      interrupt in interface org.quartz.InterruptableJob
      Throws:
      org.quartz.UnableToInterruptJobException
    • executeInternal

      protected void executeInternal(@NonNull org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      executeInternal in class org.springframework.scheduling.quartz.QuartzJobBean
      Throws:
      org.quartz.JobExecutionException
    • getType

      public TaskType getType()
      Description copied from interface: Task
      Get the type of the task. Implement this method to return the key for the type of task. This must be a read-only property.
      Specified by:
      getType in interface Task
      Returns:
      the type of task
    • getDescription

      public String getDescription()
      Description copied from interface: Task
      Get the description of the task.
      Specified by:
      getDescription in interface Task
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Description copied from interface: Task
      Set the description of the task.
      Specified by:
      setDescription in interface Task
      Parameters:
      description - the description