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 Type
    Method
    Description
    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.
  • Method Details

    • toJobData

      org.quartz.JobDataMap toJobData(Object eventMessage)
      Write an eventMessage (or its payload) to a JobDataMap.
      Parameters:
      eventMessage - to write to the JobDataMap
      Returns:
      JobDataMap written to (must not be null)
    • fromJobData

      Object fromJobData(org.quartz.JobDataMap jobData)
      Read an EventMessage (or its payload) from the JobDataMap.
      Parameters:
      jobData - to read from
      Returns:
      event message (or its payload)