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)
EventJobDataBindereventMessage (or its payload) to a JobDataMap.toJobData in interface EventJobDataBindereventMessage - to write to the JobDataMapJobDataMap written to (must not be null)public Object fromJobData(org.quartz.JobDataMap jobData)
EventJobDataBinderEventMessage (or its payload) from the JobDataMap.fromJobData in interface EventJobDataBinderjobData - to read fromCopyright © 2010–2018. All rights reserved.