public class LegacyAwareJobDataBinder extends Object implements EventJobDataBinder
Constructor and Description |
---|
LegacyAwareJobDataBinder()
Initialize the Job Data Binder to add legacy support while still allowing the default Axon 3 Job Data format
|
LegacyAwareJobDataBinder(EventJobDataBinder delegate)
Initialize the LegacyAwareJobDataBinder to add legacy job support, reverting to the given
delegate when
the given job is not a legacy job definition. |
Modifier and Type | Method and Description |
---|---|
Object |
fromJobData(org.quartz.JobDataMap jobData)
Read an
EventMessage (or its payload) from the JobDataMap . |
org.quartz.JobDataMap |
toJobData(Object eventMessage)
Write an
eventMessage (or its payload) to a JobDataMap . |
public LegacyAwareJobDataBinder()
public LegacyAwareJobDataBinder(EventJobDataBinder delegate)
delegate
when
the given job is not a legacy job definition.delegate
- The job data binder to bind non legacy jobs with.public org.quartz.JobDataMap toJobData(Object eventMessage)
EventJobDataBinder
eventMessage
(or its payload) to a JobDataMap
.toJobData
in interface EventJobDataBinder
eventMessage
- to write to the JobDataMap
JobDataMap
written to (must not be null)public Object fromJobData(org.quartz.JobDataMap jobData)
EventJobDataBinder
EventMessage
(or its payload) from the JobDataMap
.fromJobData
in interface EventJobDataBinder
jobData
- to read fromCopyright © 2010–2024. All rights reserved.