org.axonframework.eventhandling.scheduling.quartz
Class QuartzEventScheduler.DirectEventJobDataBinder
java.lang.Object
org.axonframework.eventhandling.scheduling.quartz.QuartzEventScheduler.DirectEventJobDataBinder
- All Implemented Interfaces:
- EventJobDataBinder
- Enclosing class:
- QuartzEventScheduler
public static class QuartzEventScheduler.DirectEventJobDataBinder
- extends Object
- implements EventJobDataBinder
Binds the EventMessage as is to JobDataMap under EVENT_KEY. In order for
JobDataMap to successfully serialize, the payload of the EventMessage must be
Serializable.
|
Field Summary |
static String |
EVENT_KEY
The key used to locate the event in the JobDataMap. |
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_KEY
public static final String EVENT_KEY
- The key used to locate the event in the
JobDataMap.
QuartzEventScheduler.DirectEventJobDataBinder
public QuartzEventScheduler.DirectEventJobDataBinder()
toJobData
public org.quartz.JobDataMap toJobData(Object eventMessage)
- Description copied from interface:
EventJobDataBinder
- Write an
eventMessage (or its payload) to a JobDataMap.
- Specified by:
toJobData in interface EventJobDataBinder
- Parameters:
eventMessage - to write to the JobDataMap
- Returns:
JobDataMap written to (must not be null)
fromJobData
public Object fromJobData(org.quartz.JobDataMap jobData)
- Description copied from interface:
EventJobDataBinder
- Read an
EventMessage (or its payload) from a JobDataMap.
- Specified by:
fromJobData in interface EventJobDataBinder
- Parameters:
jobData - to read from
- Returns:
- event message (or its payload)
Copyright © 2010-2016. All Rights Reserved.