org.axonframework.eventhandling.scheduling.quartz
Interface EventJobDataBinder

All Known Implementing Classes:
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:
QuartzEventScheduler, FireEventJob

Method Summary
 Object fromJobData(org.quartz.JobDataMap jobData)
          Read an EventMessage (or its payload) from a JobDataMap.
 org.quartz.JobDataMap toJobData(Object eventMessage)
          Write an eventMessage (or its payload) to a JobDataMap.
 

Method Detail

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 a JobDataMap.

Parameters:
jobData - to read from
Returns:
event message (or its payload)


Copyright © 2010-2016. All Rights Reserved.