Interface EventJobDataBinder
- All Known Implementing Classes:
LegacyAwareJobDataBinder,QuartzEventScheduler.DirectEventJobDataBinder
public interface EventJobDataBinder
Strategy towards reading/writing an Axon EventMessage from/to a Quartz
JobDataMap.
Implementors may choose how to store the event message as serializable data in JobDataMap.
This is useful when one does not want to be limited to event payloads requiring to be Serializable
(used by Quartz job data map serialization).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfromJobData(org.quartz.JobDataMap jobData) Read anEventMessage(or its payload) from theJobDataMap.org.quartz.JobDataMapWrite aneventMessage(or its payload) to aJobDataMap.
-
Method Details
-
toJobData
Write aneventMessage(or its payload) to aJobDataMap.- Parameters:
eventMessage- to write to theJobDataMap- Returns:
JobDataMapwritten to (must not be null)
-
fromJobData
Read anEventMessage(or its payload) from theJobDataMap.- Parameters:
jobData- to read from- Returns:
- event message (or its payload)
-