Class EsbEvent
java.lang.Object
com.kingsrook.qqq.esb.envelope.EsbEvent
- All Implemented Interfaces:
Serializable
An ESB message: a CloudEvents 1.0 event (spec section 4).
- id: unique per event (a UUID for events QQQ makes).
- source: qqq://instance/table/name or qqq://instance/process/name.
- type: qqq.table.name.inserted|updated|deleted,
qqq.process.name.started|completed|failed, or caller-supplied.
- subject: the record's primary key (table events only).
- causationId: the id of the event whose triggered run made this one (the
qqqcausationid extension attribute), or null.
- time: when the event was made.
- data: the event's JSON object data.
EsbEventFactory makes events; EsbEventCodec reads and writes them as JSON and
JMS messages (adding specversion and datacontenttype).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for causationIdgetData()Getter for datagetId()Getter for idGetter for sourceGetter for subjectgetTime()Getter for timegetType()Getter for typevoidsetCausationId(String causationId) Setter for causationIdvoidsetData(Map<String, Serializable> data) Setter for datavoidSetter for idvoidSetter for sourcevoidsetSubject(String subject) Setter for subjectvoidSetter for timevoidSetter for typewithCausationId(String causationId) Fluent setter for causationIdwithData(Map<String, Serializable> data) Fluent setter for dataFluent setter for idwithSource(String source) Fluent setter for sourcewithSubject(String subject) Fluent setter for subjectFluent setter for timeFluent setter for type
-
Constructor Details
-
EsbEvent
public EsbEvent()
-
-
Method Details
-
getId
Getter for id -
setId
Setter for id -
withId
-
getSource
Getter for source -
setSource
Setter for source -
withSource
-
getType
Getter for type -
setType
Setter for type -
withType
-
getSubject
Getter for subject -
setSubject
Setter for subject -
withSubject
-
getCausationId
Getter for causationId -
setCausationId
Setter for causationId -
withCausationId
-
getTime
Getter for time -
setTime
Setter for time -
withTime
-
getData
Getter for data -
setData
Setter for data -
withData
Fluent setter for data
-