[JAVA-3008] Deprecate driver-async module Created: 29/Sep/18  Updated: 28/Oct/23  Resolved: 22/Oct/18

Status: Closed
Project: Java Driver
Component/s: API, Async
Affects Version/s: None
Fix Version/s: 3.9.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Reactive Streams has won the day and it's no longer necessary or useful to have a callback-based high-level async driver.  We should deprecate all the classes in driver-async module so that they can be either removed or moved to internal in the next major release.



 Comments   
Comment by Githook User [ 22/Oct/18 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}

Message: Deprecate the mongodb-driver-async module

The mongodb-driver-async module API is based on callbacks, which are
difficult and error-prone to program against. Since this API was
introduced, the industry has standardize around
http://www.reactive-streams.org/ and, more recently,
java.util.concurrent.Flow (introduced in Java 9). Given this trend, it
is no longer advantageous to maintain the callback-based public API; it
is now deprecated and the intention is to remove it in the next
major release of the driver.

JAVA-3008
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0060faee8ddf09ab6ed8ac8bea91bb719f22d3f9

Generated at Thu Feb 08 08:58:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.