Package org.tailormap.api.scheduling
Class TMJobDataMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
Define a map with minimally required job data for the TailorMap scheduler.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionTMJobDataMap
(@NotNull String type, @NotNull String description) Create a new instance of TMJobDataMap with a status ofTrigger.TriggerState.NONE
and 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 java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TMJobDataMap
Create a new instance of TMJobDataMap.- Parameters:
map
- the map with job data, must have values for the required parameterstype
anddescription
-
TMJobDataMap
Create a new instance of TMJobDataMap with a status ofTrigger.TriggerState.NONE
and a default priority.- Parameters:
type
- the type of the jobdescription
- a description of the job
-
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()
-