public static class QuartzEventScheduler.DirectEventJobDataBinder extends Object implements EventJobDataBinder
EventMessage
as is to JobDataMap
under EVENT_KEY
. In order for
JobDataMap
to successfully serialize, the payload of the EventMessage
must be
Serializable
.Modifier and Type | Field and Description |
---|---|
static String |
EVENT_KEY
The key used to locate the event in the
JobDataMap . |
Constructor and Description |
---|
DirectEventJobDataBinder() |
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 static final String EVENT_KEY
JobDataMap
.public org.quartz.JobDataMap toJobData(Object eventMessage)
EventJobDataBinder
eventMessage
(or its payload) to a JobDataMap
.toJobData
in interface EventJobDataBinder
eventMessage
- to write to the JobDataMap
JobDataMap
written to (must not be null)public Object fromJobData(org.quartz.JobDataMap jobData)
EventJobDataBinder
EventMessage
(or its payload) from the JobDataMap
.fromJobData
in interface EventJobDataBinder
jobData
- to read fromCopyright © 2010–2017. All rights reserved.