Class CloudEventsInfo


  • public class CloudEventsInfo
    extends Object
    This class holds all the cloudevents information.
    • Constructor Detail

      • CloudEventsInfo

        public CloudEventsInfo()
        The default constructor of this class.
      • CloudEventsInfo

        public CloudEventsInfo​(String id,
                               String subject,
                               String dataSchema,
                               String correlationId)
        This constructor sets all transaction information.
        Parameters:
        id - transaction identification
        correlationId - producer identification
        subject - subject of the event
        dataSchema - schema of the data
      • CloudEventsInfo

        public CloudEventsInfo​(String id,
                               String subject,
                               String dataSchema,
                               String correlationId,
                               String dataContentType)
        This constructor sets all transaction information.
        Parameters:
        id - transaction identification
        correlationId - producer identification
        subject - subject of the event
        dataSchema - schema of the data
    • Method Detail

      • getId

        public String getId()
        Returns:
        the id
      • setId

        public void setId​(String id)
        Parameters:
        id - the id to set
      • getSubject

        public String getSubject()
        Returns:
        the subject
      • setSubject

        public void setSubject​(String subject)
        Parameters:
        subject - the subject to set
      • getDataSchema

        public String getDataSchema()
        Returns:
        the dataSchema
      • setDataSchema

        public void setDataSchema​(String dataSchema)
        Parameters:
        dataSchema - the dataSchema to set
      • getCorrelationId

        public String getCorrelationId()
        Returns:
        the correlationId
      • setCorrelationId

        public void setCorrelationId​(String correlationId)
        Parameters:
        correlationId - the correlationId to set
      • getDataContentType

        public String getDataContentType()
        Returns:
        the dataContentType
      • setDataContentType

        public void setDataContentType​(String dataContentType)
        Parameters:
        dataContentType - the dataContentType to set
      • setContentType

        public void setContentType​(String contentType)
        Parameters:
        contentType - the dataContentType to set