Class JpaEventPublication
java.lang.Object
org.springframework.modulith.events.jpa.JpaEventPublication
JPA entity to represent event publications.
- Author:
- Oliver Drotbohm, Dmitry Belyaev, Björn Kieling
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJpaEventPublication
(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType) Creates a newJpaEventPublication
for the given publication date, listener id, serialized event and event type. -
Method Summary
-
Field Details
-
id
-
publicationDate
-
listenerId
-
serializedEvent
-
eventType
-
completionDate
Instant completionDate
-
-
Constructor Details
-
JpaEventPublication
JpaEventPublication(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType) Creates a newJpaEventPublication
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
-
markCompleted
JpaEventPublication markCompleted()
-