Class JpaEventPublication

java.lang.Object
org.springframework.modulith.events.jpa.JpaEventPublication

@Entity class JpaEventPublication extends Object
JPA entity to represent event publications.
Author:
Oliver Drotbohm, Dmitry Belyaev, Björn Kieling
  • Field Details

    • id

      final UUID id
    • publicationDate

      final Instant publicationDate
    • listenerId

      final String listenerId
    • serializedEvent

      final String serializedEvent
    • eventType

      final Class<?> eventType
    • completionDate

      Instant completionDate
  • Constructor Details

    • JpaEventPublication

      JpaEventPublication(Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType)
      Creates a new JpaEventPublication for the given publication date, listener id, serialized event and event type.
      Parameters:
      publicationDate - must not be null.
      listenerId - must not be null or empty.
      serializedEvent - must not be null or empty.
      eventType - must not be null.
    • JpaEventPublication

      JpaEventPublication()
  • Method Details