You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-modulith-events/spring-modulith-events-api/src/main/java/org/springframework/modulith/events/DefaultEventExternalizationConfiguration.java
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ class DefaultEventExternalizationConfiguration implements EventExternalizationCo
Copy file name to clipboardExpand all lines: spring-modulith-events/spring-modulith-events-api/src/main/java/org/springframework/modulith/events/EventExternalizationConfiguration.java
+37-14Lines changed: 37 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,15 @@ public static Function<Object, RoutingTarget> byFullyQualifiedTypeName() {
199
199
*/
200
200
Map<String, Object> getHeadersFor(Objectevent);
201
201
202
+
/**
203
+
* Returns whether the event externalization should be serialized to make sure the broker sees the events in the order
204
+
* they were published in the application. By default, this is not guaranteed as multiple threads might trigger events
205
+
* and the externalization of one event might overtake the one of another.
206
+
*
207
+
* @since 2.0
208
+
*/
209
+
booleanserializeExternalization();
210
+
202
211
/**
203
212
* API to define which events are supposed to be selected for externalization.
204
213
*
@@ -372,13 +381,26 @@ private static <T extends Annotation> T findAnnotation(Object event, Class<T> an
Copy file name to clipboardExpand all lines: spring-modulith-events/spring-modulith-events-core/src/main/java/org/springframework/modulith/events/config/EventExternalizationAutoConfiguration.java
Copy file name to clipboardExpand all lines: spring-modulith-events/spring-modulith-events-core/src/main/java/org/springframework/modulith/events/support/EventExternalizationSupport.java
0 commit comments