Skip to content

Commit 179e4ac

Browse files
ciberkleidodrotbohm
andcommitted
GH-806 - Add archiving completion mode.
We now support an archiving completion mode that copies the entry to be completed into a dedicated archive to retain the completed event publications but also keep the main publication store small for more efficient data access. Co-authored-by: Oliver Drotbohm <oliver.drotbohm@broadcom.com>
1 parent 80f6086 commit 179e4ac

File tree

1 file changed

+7
-1
lines changed
  • spring-modulith-events/spring-modulith-events-core/src/main/java/org/springframework/modulith/events/support

1 file changed

+7
-1
lines changed

spring-modulith-events/spring-modulith-events-core/src/main/java/org/springframework/modulith/events/support/CompletionMode.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ public enum CompletionMode {
3636
/**
3737
* Completes an {@link org.springframework.modulith.events.EventPublication} by removing the database entry.
3838
*/
39-
DELETE;
39+
DELETE,
40+
41+
/**
42+
* Completes an {@link org.springframework.modulith.events.EventPublication} by moving the database entry to
43+
* an archive.
44+
*/
45+
ARCHIVE;
4046

4147
public static final String PROPERTY = "spring.modulith.events.completion-mode";
4248

0 commit comments

Comments
 (0)