Module spring.modulith.events.jpa
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
FieldsModifier and TypeFieldDescriptionprotected intprotected @Nullable Instant(package private) final Class<?>(package private) final UUIDprotected @Nullable Instant(package private) final String(package private) final Instant(package private) final Stringprotected @Nullable org.springframework.modulith.events.EventPublication.Status -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedJpaEventPublication(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable org.springframework.modulith.events.EventPublication.Status status, @Nullable Instant lastResubmissionDate, int completionAttempts) Creates a newJpaEventPublicationfor the given publication date, listener id, serialized event and event type. -
Method Summary
Modifier and TypeMethodDescription(package private) ArchivedJpaEventPublicationboolean(package private) static Class<? extends JpaEventPublication>getCompletedType(org.springframework.modulith.events.support.CompletionMode mode) (package private) static Class<? extends JpaEventPublication>inthashCode()(package private) static JpaEventPublicationof(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable org.springframework.modulith.events.EventPublication.Status status, @Nullable Instant lastResubmissionDate, int completionAttempts)
-
Field Details
-
id
-
publicationDate
-
listenerId
-
serializedEvent
-
eventType
-
completionDate
-
lastResubmissionDate
-
completionAttempts
protected int completionAttempts -
status
protected @Nullable org.springframework.modulith.events.EventPublication.Status status
-
-
Constructor Details
-
JpaEventPublication
protected JpaEventPublication(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable org.springframework.modulith.events.EventPublication.Status status, @Nullable Instant lastResubmissionDate, int completionAttempts) 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
@NullUnmarked protected JpaEventPublication()
-
-
Method Details