public static class QuartzEventScheduler.DirectEventJobDataBinder extends Object implements EventJobDataBinder
JobDataMapby serializing the payload and metadata with a
Serializer. All the important EventMessage fields, thus the message identifier, timestamp, and the serialized payload and metadata, are stored as separate values in the JobDataMap.
The old approach, which let Quartz do the serialization of the entire EventMessage at once, is maintained for backwards compatibility only.
|Modifier and Type||Field and Description|
in favor of the default message keys | only maintained for backwards compatibility
|Constructor and Description|
|Modifier and Type||Method and Description|
Note that this function is able to retrieve an Event Message in two formats.
@Deprecated public DirectEventJobDataBinder()
DirectEventJobDataBinder(Serializer), as the
Serializeris a hard requirement.
public org.quartz.JobDataMap toJobData(Object event)
eventMessage(or its payload) to a
public Object fromJobData(org.quartz.JobDataMap jobDataMap)
Serializerin this class to serialized the payload and metadata of an event message. All fields which required to instantiate a
GenericEventMessageare currently stored in the
jobDataMapwhen calling the
toJobData(Object)function. Approach one only exists for backwards compatibility and should be removed in subsequent major releases.
EventMessage (or its payload) from the
Copyright © 2010–2021. All rights reserved.