Interface EventAttributes

All Known Implementing Classes:
RepoEvent

public interface EventAttributes
Event's attributes conforming to CloudEvents v1.0 specification.
Author:
Jamal Kaabi-Mofrad
  • Method Details

    • getId

      String getId()
      Returns:
      The ID of the event, generated by the producer.
    • getType

      String getType()
      Returns:
      The type of an event which has happened.
    • getSource

      URI getSource()
      Returns:
      The context in which an event happened. E.g. The instance of a DBP component that produced the event.
    • getDataschema

      URI getDataschema()
      Returns:
      The schema that data adheres to.
    • getSpecversion

      String getSpecversion()
      Returns:
      The CloudEvents specification version
    • getTime

      ZonedDateTime getTime()
      Returns:
      The timestamp of when the occurrence happened.
    • getDatacontenttype

      String getDatacontenttype()
      Returns:
      The content type of the data attribute adhering to the RFC2046
    • getExtensionAttributes

      default ExtensionAttributes getExtensionAttributes()
      Returns:
      Optional extension attributes that can be additionally added to the event.
      See CloudEvents v1.0 specification Extension Context Attributes for more details.