-
Type: Improvement
-
Resolution: Done
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Async, Configuration
-
None
Hello,
I was digging into MongoDB java driver version 5 (I'm currently running version 4) and I noticed that, despite some objects being migrated to the package com.mongodb.internal.connection, some of them are not available anymore; specifically there is no way to set a stream factory to the MongoClientSettings' Builder.
This means that, there is no way to set an AsynchronousChannelGroup to the driver.
If you have a look at here: https://github.com/mongodb/mongo-java-driver/blob/98934ddc52efa48e7e3b41339e57ff4c8dc89322/driver-core/src/main/com/mongodb/internal/connection/AsynchronousSocketChannelStream.java#L80
There is no way anymore to set a custom AsynchronousChannelGroup.
For instance let's say I want to provide a specific group, taking the ownership to manage an internal executor service (eventually manage its lifecycle), there is no way anymore to do such a thing.
Is there any reason why this feature has been removed?
Thanks,
Matteo.
- related to
-
JAVA-5051 Deprecate Stream API
- Closed
- links to