File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ examples:
95
95
# java crud
96
96
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-java-driver/master/driver-sync/src/examples/documentation/DocumentationSamples.java -o ${DRIVERS_PATH}/DocumentationSamples.java
97
97
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-java-driver-reactivestreams/master/examples/documentation/src/DocumentationSamples.java -o ${DRIVERS_PATH}/AsyncDocumentationSamples.java
98
+ # java causal
99
+ curl -SfL https://raw.githubusercontent.com/mongodb/mongo-java-driver/master/driver-sync/src/examples/documentation/CausalConsistencyExamples.java -o ${DRIVERS_PATH}/CausalConsistencyExamples.java
98
100
99
101
# node
100
102
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/master/test/examples/change_streams.js -o ${DRIVERS_PATH}/node_changestreams.js
Original file line number Diff line number Diff line change @@ -287,6 +287,15 @@ ensure that the update occurs before the insert.
287
287
:start-after: Start Causal Consistency Example 1
288
288
:end-before: End Causal Consistency Example 1
289
289
290
+ - id: java-sync
291
+ content: |
292
+
293
+ .. literalinclude:: /driver-examples/CausalConsistencyExamples.java
294
+ :language: java
295
+ :dedent: 8
296
+ :start-after: Start Causal Consistency Example 1
297
+ :end-before: End Causal Consistency Example 1
298
+
290
299
- id: php
291
300
content: |
292
301
@@ -341,6 +350,15 @@ other session and read after the two writes:
341
350
:start-after: Start Causal Consistency Example 2
342
351
:end-before: End Causal Consistency Example 2
343
352
353
+ - id: java-sync
354
+ content: |
355
+
356
+ .. literalinclude:: /driver-examples/CausalConsistencyExamples.java
357
+ :language: java
358
+ :dedent: 8
359
+ :start-after: Start Causal Consistency Example 2
360
+ :end-before: End Causal Consistency Example 2
361
+
344
362
- id: php
345
363
content: |
346
364
You can’t perform that action at this time.
0 commit comments