Class TMJobDataMap
- All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionTMJobDataMap(@NotNull String type, @NotNull String description) Create a new instance of TMJobDataMap with a status ofTrigger.TriggerState.NONEand a default priority.TMJobDataMap(@NotNull String type, @NotNull String description, org.quartz.Trigger.TriggerState state) Create a new instance of TMJobDataMap with default priority.TMJobDataMap(@NotNull String type, @NotNull String description, org.quartz.Trigger.TriggerState state, int priority) Create a new instance of TMJobDataMap.TMJobDataMap(Map<String, Object> map) Create a new instance of TMJobDataMap. -
Method Summary
Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TMJobDataMap
-
TMJobDataMap
-
TMJobDataMap
public TMJobDataMap(@NotNull @NotNull String type, @NotNull @NotNull String description, @NotNull org.quartz.Trigger.TriggerState state) Create a new instance of TMJobDataMap with default priority.- Parameters:
type- the type of the jobdescription- a description of the jobstate- the state of the job
-
TMJobDataMap
public TMJobDataMap(@NotNull @NotNull String type, @NotNull @NotNull String description, @NotNull org.quartz.Trigger.TriggerState state, int priority) Create a new instance of TMJobDataMap.- Parameters:
type- the type of the jobdescription- a description of the jobstate- the state of the jobpriority- the priority of the job, an integer value equal or greater than 0
-
-
Method Details
-
getType
-
getDescription
-
getState
@NotNull public org.quartz.Trigger.TriggerState getState() -
setState
public void setState(org.quartz.Trigger.TriggerState state) -
setPriority
public void setPriority(int priority) Set the priority of the job. Using this method will ensure that the priority is equal or greater than 0.- Parameters:
priority- the priority of the job, an integer value equal or greater than 0
-
getPriority
public int getPriority()
-