Class PocTask

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

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

    • PocTask

      public PocTask(ch.rasc.sse.eventbus.SseEventBus eventBus, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • executeInternal

      protected void executeInternal(@NonNull org.quartz.JobExecutionContext context)
      Specified by:
      executeInternal in class org.springframework.scheduling.quartz.QuartzJobBean
    • 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
    • getFoo

      public String getFoo()
    • setFoo

      public void setFoo(String foo)
    • 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