public static class DeadlineJob.DeadlineJobDataBinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_DEADLINE_MESSAGE
Deprecated.
in favor of the separate DeadlineMessage keys | only maintained for backwards compatibility
|
static String |
SERIALIZED_DEADLINE_MESSAGE_CLASS_NAME
Deprecated.
in favor of the separate DeadlineMessage keys | only maintained for backwards compatibility
|
static String |
SERIALIZED_DEADLINE_SCOPE
Key pointing to the serialized deadline
ScopeDescriptor in the JobDataMap |
static String |
SERIALIZED_DEADLINE_SCOPE_CLASS_NAME
Key pointing to the class name of the deadline
ScopeDescriptor in the JobDataMap |
| Constructor and Description |
|---|
DeadlineJobDataBinder() |
| Modifier and Type | Method and Description |
|---|---|
static DeadlineMessage |
deadlineMessage(Serializer serializer,
org.quartz.JobDataMap jobDataMap)
Extracts a
DeadlineMessage from provided jobDataMap. |
static ScopeDescriptor |
deadlineScope(Serializer serializer,
org.quartz.JobDataMap jobDataMap)
|
static org.quartz.JobDataMap |
toJobData(Serializer serializer,
DeadlineMessage deadlineMessage,
ScopeDescriptor deadlineScope)
Serializes the provided
deadlineMessage and deadlineScope and puts them in a
JobDataMap. |
@Deprecated public static final String SERIALIZED_DEADLINE_MESSAGE
DeadlineMessage.@Deprecated public static final String SERIALIZED_DEADLINE_MESSAGE_CLASS_NAME
DeadlineMessage.public static final String SERIALIZED_DEADLINE_SCOPE
ScopeDescriptor in the JobDataMappublic static final String SERIALIZED_DEADLINE_SCOPE_CLASS_NAME
ScopeDescriptor in the JobDataMappublic static org.quartz.JobDataMap toJobData(Serializer serializer, DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope)
deadlineMessage and deadlineScope and puts them in a
JobDataMap.serializer - the Serializer used to serialize the given deadlineMessage and
deadlineScopedeadlineMessage - the DeadlineMessage to be handleddeadlineScope - the ScopeDescriptor of the Scope the
deadlineMessage should go to.JobDataMap containing the deadlineMessage and deadlineScopepublic static DeadlineMessage deadlineMessage(Serializer serializer, org.quartz.JobDataMap jobDataMap)
DeadlineMessage from provided jobDataMap.
Note that this function is able to retrieve two different formats of DeadlineMessage. The first being
a now deprecated solution which used to serialized the entire DeadlineMessage into the
JobDataMap. This is only kept for backwards compatibility. The second is the new solution which
stores all the required deadline fields separately, only de-/serializing the payload and metadata of a
DeadlineMessage instead of the entire message.serializer - the Serializer used to deserialize the contents of the given jobDataMap}
into a DeadlineMessagejobDataMap - the JobDataMap which should contain a DeadlineMessageDeadlineMessage pulled from the jobDataMappublic static ScopeDescriptor deadlineScope(Serializer serializer, org.quartz.JobDataMap jobDataMap)
serializer - the Serializer used to deserialize the contents of the given jobDataMap}
into a ScopeDescriptorjobDataMap - the JobDataMap which should contain a ScopeDescriptorScopeDescriptor describing the deadline Scope, pulled
from provided jobDataMapCopyright © 2010–2023. All rights reserved.