Class JpaEventPublication

java.lang.Object
org.springframework.modulith.events.jpa.JpaEventPublication
Direct Known Subclasses:
ArchivedJpaEventPublication, DefaultJpaEventPublication

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

    • id

      final UUID id
    • publicationDate

      final Instant publicationDate
    • listenerId

      final String listenerId
    • serializedEvent

      final String serializedEvent
    • eventType

      final Class<?> eventType
    • completionDate

      protected Instant completionDate
  • Constructor Details

    • JpaEventPublication

      protected JpaEventPublication(UUID id, 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

      protected JpaEventPublication()
  • Method Details