Class EsbEvent

java.lang.Object
com.kingsrook.qqq.esb.envelope.EsbEvent
All Implemented Interfaces:
Serializable

public class EsbEvent extends Object implements 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 Details

    • EsbEvent

      public EsbEvent()
  • Method Details

    • getId

      public String getId()
      Getter for id
    • setId

      public void setId(String id)
      Setter for id
    • withId

      public EsbEvent withId(String id)
      Fluent setter for id
    • getSource

      public String getSource()
      Getter for source
    • setSource

      public void setSource(String source)
      Setter for source
    • withSource

      public EsbEvent withSource(String source)
      Fluent setter for source
    • getType

      public String getType()
      Getter for type
    • setType

      public void setType(String type)
      Setter for type
    • withType

      public EsbEvent withType(String type)
      Fluent setter for type
    • getSubject

      public String getSubject()
      Getter for subject
    • setSubject

      public void setSubject(String subject)
      Setter for subject
    • withSubject

      public EsbEvent withSubject(String subject)
      Fluent setter for subject
    • getCausationId

      public String getCausationId()
      Getter for causationId
    • setCausationId

      public void setCausationId(String causationId)
      Setter for causationId
    • withCausationId

      public EsbEvent withCausationId(String causationId)
      Fluent setter for causationId
    • getTime

      public Instant getTime()
      Getter for time
    • setTime

      public void setTime(Instant time)
      Setter for time
    • withTime

      public EsbEvent withTime(Instant time)
      Fluent setter for time
    • getData

      public Map<String,Serializable> getData()
      Getter for data
    • setData

      public void setData(Map<String,Serializable> data)
      Setter for data
    • withData

      public EsbEvent withData(Map<String,Serializable> data)
      Fluent setter for data