Skip to content

Commit a9b8039

Browse files
committed
Add Neo4j support for modulith v2 methods
1 parent b5dfb70 commit a9b8039

File tree

4 files changed

+265
-121
lines changed

4 files changed

+265
-121
lines changed

spring-modulith-events/spring-modulith-events-neo4j/src/main/java/org/springframework/modulith/events/neo4j/Neo4jEventPublication.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.util.UUID;
2020

2121
import org.jspecify.annotations.Nullable;
22+
import org.springframework.modulith.events.EventPublication;
2223

2324
/**
2425
* The event publication entity definition.
@@ -33,17 +34,24 @@ class Neo4jEventPublication {
3334
public final String listenerId;
3435
public final Object event;
3536
public final String eventHash;
37+
public final int completionAttempts;
3638

3739
public @Nullable Instant completionDate;
40+
public @Nullable Instant lastResubmissionDate;
41+
public EventPublication.Status status;
3842

3943
public Neo4jEventPublication(UUID identifier, Instant publicationDate, String listenerId, Object event,
40-
String eventHash, @Nullable Instant completionDate) {
44+
String eventHash, @Nullable Instant completionDate, EventPublication.Status status, int completionAttempts,
45+
@Nullable Instant lastResubmissionDate) {
4146

4247
this.identifier = identifier;
4348
this.publicationDate = publicationDate;
4449
this.listenerId = listenerId;
4550
this.event = event;
4651
this.eventHash = eventHash;
4752
this.completionDate = completionDate;
53+
this.status = status;
54+
this.lastResubmissionDate = lastResubmissionDate;
55+
this.completionAttempts = completionAttempts;
4856
}
4957
}

0 commit comments

Comments
 (0)