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 JobDataMap
public static final String SERIALIZED_DEADLINE_SCOPE_CLASS_NAME
ScopeDescriptor
in the JobDataMap
public 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 deadlineScope
deadlineMessage
- the DeadlineMessage
to be handleddeadlineScope
- the ScopeDescriptor
of the Scope
the
deadlineMessage
should go to.JobDataMap
containing the deadlineMessage
and deadlineScope
public 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 DeadlineMessage
jobDataMap
- the JobDataMap
which should contain a DeadlineMessage
DeadlineMessage
pulled from the jobDataMap
public static ScopeDescriptor deadlineScope(Serializer serializer, org.quartz.JobDataMap jobDataMap)
serializer
- the Serializer
used to deserialize the contents of the given jobDataMap}
into a ScopeDescriptor
jobDataMap
- the JobDataMap
which should contain a ScopeDescriptor
ScopeDescriptor
describing the deadline Scope
, pulled
from provided jobDataMap
Copyright © 2010–2020. All rights reserved.