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 status) Create a new instance of TMJobDataMap with default priority.TMJobDataMap
(@NotNull String type, @NotNull String description, org.quartz.Trigger.TriggerState status, int priority) Create a new instance of TMJobDataMap.TMJobDataMap
(Map<String, Object> map) Create a new instance of TMJobDataMap. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
int
org.quartz.Trigger.TriggerState
@NotNull String
getType()
void
setPriority
(int priority) Set the priority of the job.void
setStatus
(org.quartz.Trigger.TriggerState status) 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 status) Create a new instance of TMJobDataMap with default priority.- Parameters:
type
- the type of the jobdescription
- a description of the jobstatus
- 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 jobdescription
- a description of the jobstatus
- the status of the jobpriority
- the priority of the job, an integer value equal or greater than 0
-
-
Method Details
-
getType
-
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()
-