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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedJpaEventPublication(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable 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>(package private) static Class<? extends JpaEventPublication>inthashCode()(package private) static JpaEventPublicationof(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable EventPublication.Status status, @Nullable Instant lastResubmissionDate, int completionAttempts)
-
Field Details
-
id
-
publicationDate
-
listenerId
-
serializedEvent
-
eventType
-
completionDate
-
lastResubmissionDate
-
completionAttempts
protected int completionAttempts -
status
-
-
Constructor Details
-
JpaEventPublication
protected JpaEventPublication(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable 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
-
of
static JpaEventPublication of(UUID id, Instant publicationDate, String listenerId, String serializedEvent, Class<?> eventType, @Nullable EventPublication.Status status, @Nullable Instant lastResubmissionDate, int completionAttempts) -
getIncompleteType
-
getCompletedType
-
archive
-
equals
-
hashCode
public int hashCode()
-