Class IndexTask

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

@DisallowConcurrentExecution @PersistJobDataAfterExecution public class IndexTask extends org.springframework.scheduling.quartz.QuartzJobBean implements Task
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • taskProgress

      public void taskProgress(TaskProgressEvent event)
      Description copied from interface: Task
      Handle the task progress event. Override this method to handle the progress of the task, e.g. by emitting ServerSentEvents. The default is a no-op.
      Specified by:
      taskProgress in interface Task
      Parameters:
      event - the task progress event
    • 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
    • getIndexId

      public long getIndexId()
    • setIndexId

      public void setIndexId(long indexId)
    • 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