Class JpaEventPublication
java.lang.Object
org.springframework.modulith.events.jpa.JpaEventPublication
- Direct Known Subclasses:
ArchivedJpaEventPublication
,DefaultJpaEventPublication
JPA entity to represent event publications.
- Author:
- Oliver Drotbohm, Dmitry Belyaev, Björn Kieling, Cora Iberkleid
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
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. -
Method Summary
Modifier and TypeMethodDescription(package private) ArchivedJpaEventPublication
boolean
(package private) static Class<? extends JpaEventPublication>
(package private) static Class<? extends JpaEventPublication>
int
hashCode()
(package private) static JpaEventPublication
-
Field Details
-
id
-
publicationDate
-
listenerId
-
serializedEvent
-
eventType
-
completionDate
-
-
Constructor Details
-
JpaEventPublication
protected 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
protected JpaEventPublication()
-
-
Method Details