Class TMJobDataMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.tailormap.api.scheduling.TMJobDataMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class TMJobDataMap extends HashMap<String,Object>
Define a map with minimally required job data for the TailorMap scheduler.
See Also:
  • Constructor Details

    • TMJobDataMap

      public TMJobDataMap(Map<String,Object> map)
      Create a new instance of TMJobDataMap.
      Parameters:
      map - the map with job data, must have values for the required parameters type and description
    • TMJobDataMap

      public TMJobDataMap(@NotNull @NotNull String type, @NotNull @NotNull String description)
      Create a new instance of TMJobDataMap with a status of Trigger.TriggerState.NONE and a default priority.
      Parameters:
      type - the type of the job
      description - a description of the job
    • TMJobDataMap

      public TMJobDataMap(@NotNull @NotNull String type, @NotNull @NotNull String description, @NotNull org.quartz.Trigger.TriggerState status)
      Create a new instance of TMJobDataMap with default priority.
      Parameters:
      type - the type of the job
      description - a description of the job
      status - the status of the job
    • TMJobDataMap

      public TMJobDataMap(@NotNull @NotNull String type, @NotNull @NotNull String description, @NotNull org.quartz.Trigger.TriggerState status, int priority)
      Create a new instance of TMJobDataMap.
      Parameters:
      type - the type of the job
      description - a description of the job
      status - the status of the job
      priority - the priority of the job, an integer value equal or greater than 0
  • Method Details

    • getType

      @NotNull public @NotNull String getType()
    • getDescription

      @NotNull public @NotNull String getDescription()
    • getStatus

      @NotNull public org.quartz.Trigger.TriggerState getStatus()
    • setStatus

      public void setStatus(org.quartz.Trigger.TriggerState status)
    • setPriority

      public void setPriority(int priority)
      Set the priority of the job.
      Parameters:
      priority - the priority of the job, an integer value equal or greater than 0
    • getPriority

      public int getPriority()