Class FailingPocTask

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

@DisallowConcurrentExecution @PersistJobDataAfterExecution public class FailingPocTask extends org.springframework.scheduling.quartz.QuartzJobBean implements Task
POC task for testing purposes. This task always fails.
  • Constructor Details

    • FailingPocTask

      public FailingPocTask()
  • Method Details

    • executeInternal

      protected void executeInternal(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