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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJpaEventPublication(Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType) Creates a newJpaEventPublicationfor 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(Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType) Creates a newJpaEventPublicationfor 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()
-