From 2162abe7348ffae2d2226fe8b016d6f4e80a2e9c Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Fri, 26 Jan 2024 11:55:34 -0500 Subject: [PATCH 1/3] events classes deprecation --- source/upgrade.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/upgrade.txt b/source/upgrade.txt index 6a84ee468..9d54a2acb 100644 --- a/source/upgrade.txt +++ b/source/upgrade.txt @@ -241,6 +241,20 @@ This driver version introduces the following breaking changes: the error labels included in the ``MongoException`` object that contains the ``WriteConcernError``. +- Removes the following classes from the + ``com.mongodb.event`` package: + + - ``ClusterListenerAdapter`` + - ``ConnectionAddedEvent`` + - ``ConnectionPoolListenerAdapter`` + - ``ConnectionPoolOpenedEvent`` + - ``ConnectionRemovedEvent`` + - ``ServerListenerAdapter`` + - ``ServerMonitorListenerAdapter`` + + For more information about the events package, see the `com.mongodb.event + package documentation <{+api+}/apidocs/mongodb-driver-core/com/mongodb/event/package-summary.html>`__ + .. _java-breaking-changes-v4.8: Version 4.8 Breaking Changes From 78872bb4eb119a710604aaf9a9c4fda53bdbe1c0 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Wed, 7 Feb 2024 16:57:10 -0500 Subject: [PATCH 2/3] VK review --- source/upgrade.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/upgrade.txt b/source/upgrade.txt index 9d54a2acb..c600b924d 100644 --- a/source/upgrade.txt +++ b/source/upgrade.txt @@ -244,13 +244,20 @@ This driver version introduces the following breaking changes: - Removes the following classes from the ``com.mongodb.event`` package: - - ``ClusterListenerAdapter`` - ``ConnectionAddedEvent`` - - ``ConnectionPoolListenerAdapter`` - ``ConnectionPoolOpenedEvent`` - ``ConnectionRemovedEvent`` + - ``ClusterListenerAdapter`` + - ``ConnectionPoolListenerAdapter`` - ``ServerListenerAdapter`` - ``ServerMonitorListenerAdapter`` + + Because of these removals, the following methods were also removed from the + ``ConnectionPoolListener`` class: + + - ``connectionAdded`` + - ``connectionPoolOpened`` + - ``connectionRemoved`` For more information about the events package, see the `com.mongodb.event package documentation <{+api+}/apidocs/mongodb-driver-core/com/mongodb/event/package-summary.html>`__ From fc7c002fc5391d4870be6da87ce0ca094a916130 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Thu, 8 Feb 2024 09:06:11 -0500 Subject: [PATCH 3/3] VK review --- source/upgrade.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/upgrade.txt b/source/upgrade.txt index c600b924d..4e98d77a1 100644 --- a/source/upgrade.txt +++ b/source/upgrade.txt @@ -253,7 +253,7 @@ This driver version introduces the following breaking changes: - ``ServerMonitorListenerAdapter`` Because of these removals, the following methods were also removed from the - ``ConnectionPoolListener`` class: + ``ConnectionPoolListener`` interface: - ``connectionAdded`` - ``connectionPoolOpened``