Class DeadlineJob.DeadlineJobDataBinder
java.lang.Object
org.axonframework.deadline.quartz.DeadlineJob.DeadlineJobDataBinder
- Enclosing class:
DeadlineJob
This binder is used to map deadline message and deadline scopes to the job data and vice versa.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.in favor of the separate DeadlineMessage keys | only maintained for backwards compatibilitystatic final StringDeprecated.in favor of the separate DeadlineMessage keys | only maintained for backwards compatibilitystatic final StringKey pointing to the serialized deadlineScopeDescriptorin theJobDataMapstatic final StringKey pointing to the class name of the deadlineScopeDescriptorin theJobDataMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeadlineMessagedeadlineMessage(Serializer serializer, org.quartz.JobDataMap jobDataMap) Extracts aDeadlineMessagefrom providedjobDataMap.static ScopeDescriptordeadlineScope(Serializer serializer, org.quartz.JobDataMap jobDataMap) static org.quartz.JobDataMaptoJobData(Serializer serializer, DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope) Serializes the provideddeadlineMessageanddeadlineScopeand puts them in aJobDataMap.
-
Field Details
-
SERIALIZED_DEADLINE_MESSAGE
Deprecated.in favor of the separate DeadlineMessage keys | only maintained for backwards compatibilityKey pointing to the serializedDeadlineMessage.- See Also:
-
SERIALIZED_DEADLINE_MESSAGE_CLASS_NAME
Deprecated.in favor of the separate DeadlineMessage keys | only maintained for backwards compatibilityKey pointing to the class name of the serializedDeadlineMessage.- See Also:
-
SERIALIZED_DEADLINE_SCOPE
Key pointing to the serialized deadlineScopeDescriptorin theJobDataMap- See Also:
-
SERIALIZED_DEADLINE_SCOPE_CLASS_NAME
Key pointing to the class name of the deadlineScopeDescriptorin theJobDataMap- See Also:
-
-
Constructor Details
-
DeadlineJobDataBinder
public DeadlineJobDataBinder()
-
-
Method Details
-
toJobData
public static org.quartz.JobDataMap toJobData(Serializer serializer, DeadlineMessage deadlineMessage, ScopeDescriptor deadlineScope) Serializes the provideddeadlineMessageanddeadlineScopeand puts them in aJobDataMap.- Parameters:
serializer- theSerializerused to serialize the givendeadlineMessageanddeadlineScopedeadlineMessage- theDeadlineMessageto be handleddeadlineScope- theScopeDescriptorof theScopethedeadlineMessageshould go to.- Returns:
- a
JobDataMapcontaining thedeadlineMessageanddeadlineScope
-
deadlineMessage
public static DeadlineMessage deadlineMessage(Serializer serializer, org.quartz.JobDataMap jobDataMap) Extracts aDeadlineMessagefrom providedjobDataMap. 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 entireDeadlineMessageinto theJobDataMap. 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.- Parameters:
serializer- theSerializerused to deserialize the contents of the given jobDataMap} into aDeadlineMessagejobDataMap- theJobDataMapwhich should contain aDeadlineMessage- Returns:
- the
DeadlineMessagepulled from thejobDataMap
-
deadlineScope
public static ScopeDescriptor deadlineScope(Serializer serializer, org.quartz.JobDataMap jobDataMap) - Parameters:
serializer- theSerializerused to deserialize the contents of the given jobDataMap} into aScopeDescriptorjobDataMap- theJobDataMapwhich should contain aScopeDescriptor- Returns:
- the
ScopeDescriptordescribing the deadlineScope, pulled from providedjobDataMap
-