forked from mongodb/mongo-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Abstract Cursor Resource Manager #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
985b9ec
Autorefactor out CursorResourceManager
rozza e23f1f6
Made CursorResourceManager abstract
rozza 3083b64
Reuse the async connection in the getmore loop
rozza 026cec7
PR updates
rozza 7db464c
Just use ReentrantLock
rozza 76bf15e
convertAndProduceLastId now is fully non null
rozza b6ee18f
Remove limit and count from CommandBatchCursors and clarify initial c…
rozza dd3b55c
Fix ChangeStreamBatchCursorSpecification.groovy
rozza 8d9f3b1
Codenarc / checkstyle fixes and cleanups
rozza bfdf0d5
Ternary ifs ftw
rozza 6c2686e
Update driver-core/src/main/com/mongodb/internal/operation/CursorReso…
rozza 86330d7
Update driver-core/src/main/com/mongodb/internal/operation/CursorReso…
rozza 0e81675
Update driver-core/src/main/com/mongodb/internal/operation/CursorReso…
rozza 44d9b0f
Update driver-core/src/main/com/mongodb/internal/operation/CursorReso…
rozza d90a54a
Update driver-core/src/main/com/mongodb/internal/operation/CursorReso…
rozza 7e67a4f
Remove notNull checks for API items that aren't marked nullable
rozza 29d6f46
Update driver-core/src/main/com/mongodb/internal/operation/AsyncComma…
rozza 238cd21
Update driver-core/src/main/com/mongodb/internal/operation/CursorReso…
rozza 57412bb
Updated / simplified AsyncCommandBatchCursor.ResourceManager.execute
stIncMale 569e281
Revert "Update driver-core/src/main/com/mongodb/internal/operation/Cu…
rozza b217463
Update driver-core/src/main/com/mongodb/assertions/Assertions.java
rozza 2ba861f
doesNotThrow fix
rozza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
465 changes: 183 additions & 282 deletions
465
driver-core/src/main/com/mongodb/internal/operation/AsyncCommandBatchCursor.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This follows on from the previous AsyncSingleBatchCursor change where
next()
no longer returns a null value.