|
1 | 1 | .. _java-fundamentals-change-streams:
|
2 | 2 | .. _retrieve-watch:
|
3 |
| -.. _java-usage-watch: |
4 | 3 |
|
5 | 4 | ===================
|
6 | 5 | Open Change Streams
|
@@ -109,12 +108,12 @@ You can call ``forEach()`` on the ``ChangeStreamIterable`` to handle
|
109 | 108 | events as they occur, or you can use the ``iterator()`` method which
|
110 | 109 | returns a ``MongoChangeStreamCursor`` instance that you can use to traverse the results.
|
111 | 110 |
|
112 |
| -You can call the following methods on the ``MongoChangeStreamCursor`: |
| 111 | +You can call the following methods on a ``MongoChangeStreamCursor`` instance: |
113 | 112 |
|
114 |
| - - ``hasNext()``: checks if there are more results. |
115 |
| - - ``next()`` returns the next document in the collection. |
116 |
| - - ``tryNext()`` immediately returns either the next available element in the |
117 |
| - change stream or ``null``. |
| 113 | +- ``hasNext()``: Checks if there are more results |
| 114 | +- ``next()``: Returns the next document in the collection |
| 115 | +- ``tryNext()``: Immediately returns either the next available element in the |
| 116 | + change stream or ``null`` |
118 | 117 |
|
119 | 118 | .. important:: Iterating the Cursor Blocks the Current Thread
|
120 | 119 |
|
@@ -513,4 +512,5 @@ Server Manual Entries
|
513 | 512 | - :manual:`Change Streams </changeStreams/>`
|
514 | 513 | - :manual:`Change Events </reference/change-events/>`
|
515 | 514 | - :manual:`Aggregation Pipeline </reference/operator/aggregation-pipeline/>`
|
516 |
| -- :manual:`Aggregation Stages </changeStreams/#modify-change-stream-output>` |
| 515 | +- :manual:`Aggregation Stages |
| 516 | + </changeStreams/#modify-change-stream-output>` |
0 commit comments