-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Async support follow-up 2 #153
base: main
Are you sure you want to change the base?
Conversation
core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoBackend.java
Outdated
Show resolved
Hide resolved
30b0fe7
to
5ebf29a
Compare
@justinchuch: Could you indicate more clearly which part of this PR is the revert? I would prefer to see one or two commits just for the reverts. |
core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoBackend.java
Outdated
Show resolved
Hide resolved
core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoBackend.java
Outdated
Show resolved
Hide resolved
core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoCollection.java
Outdated
Show resolved
Hide resolved
@@ -469,7 +469,7 @@ public QueryResult handleQuery(QueryParameters queryParameters) { | |||
return writeErrors; | |||
} | |||
|
|||
private static Document toErrorDocument(MongoServerError e, int index) { | |||
public static Document toErrorDocument(MongoServerError e, int index) { |
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.
protected
would be enough.
Please add the @VisibleForExternalBackends
to indicate why it’s not a private method.
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.
@VisibleForExternalBackends
added.
core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoDatabase.java
Show resolved
Hide resolved
core/src/main/java/de/bwaldvogel/mongo/backend/AbstractMongoDatabase.java
Outdated
Show resolved
Hide resolved
578b71c
to
129c171
Compare
This reverts commit 9e379e5.
This reverts commit 8481016.
log unknown error unwrap CompletionException enhance error handling
Change method visibility to public for extensibility Add tests to cover synchronous and asynchronous method call
Change method visibility to public for extensibility
Update MongoCollection
Change method visibility to public for extensibility
Change method visibility to public for extensibility
129c171
to
8109dc3
Compare
Revert some of the changes in #149, which are not ready to merge.
Update MongoDatabaseHanlder:
Add method in
AsyncMongoCollection
andMongoCollection
Change method visibility in
AbstractMongoBackend
,AbstractMongoDatabase
,AbstractMongoCollection
,Utils
topublic
for extensibility.