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
Simplify conditional flow. Replace AtomicReference construction in ChangeStreamEvent with AtomicReferenceFieldUpdater usage to reduce object allocations to streamline lazy body conversion usage. Tweak Javadoc and reference docs.
Original pull request: spring-projects#576.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/messaging/ChangeStreamRequest.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,13 @@
46
46
*
47
47
* or {@link com.mongodb.client.MongoDatabase} which receives events from all {@link com.mongodb.client.MongoCollection
48
48
* collections} in that database.
49
-
*
49
+
*
50
50
* <pre>
51
51
* <code>
52
52
* ChangeStreamRequest<Document> request = new ChangeStreamRequest<>(System.out::println, RequestOptions.justDatabase("test"));
53
53
* </code>
54
54
* </pre>
55
-
*
55
+
*
56
56
* For more advanced scenarios {@link ChangeStreamOptions} offers abstractions for options like filtering, resuming,...
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/messaging/SubscriptionRequest.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ interface RequestOptions {
57
57
* Get the database name of the db.
58
58
*
59
59
* @return the name of the database to subscribe to. Can be {@literal null} in which case the default
60
-
* {@link MongoDbFactory#getDb()} is used.
60
+
* {@link MongoDbFactory#getDb() database} is used.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/messaging/DefaultMessageListenerContainerTests.java
+4-4
Original file line number
Diff line number
Diff line change
@@ -56,16 +56,16 @@ public class DefaultMessageListenerContainerTests {
0 commit comments