8000 [JAVA] Remove deprecated event-related classes (#515) · rustagir/docs-java@e723689 · GitHub
[go: up one dir, main page]

Skip to content

Commit e723689

Browse files
authored
[JAVA] Remove deprecated event-related classes (mongodb#515)
* events classes deprecation
1 parent c091148 commit e723689

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

source/upgrade.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,27 @@ This driver version introduces the following breaking changes:
241241
the error labels included in the ``MongoException`` object that contains the
242242
``WriteConcernError``.
243243

244+
- Removes the following classes from the
245+
``com.mongodb.event`` package:
246+
247+
- ``ConnectionAddedEvent``
248+
- ``ConnectionPoolOpenedEvent``
249+
- ``ConnectionRemovedEvent``
250+
- ``ClusterListenerAdapter``
251+
- ``ConnectionPoolListenerAdapter``
252+
- ``ServerListenerAdapter``
253+
- ``ServerMonitorListenerAdapter``
254+
255+
Because of these removals, the following methods were also removed from the
256+
``ConnectionPoolListener`` interface:
257+
258+
- ``connectionAdded``
259+
- ``connectionPoolOpened``
260+
- ``connectionRemoved``
261+
262+
For more information about the events package, see the `com.mongodb.event
263+
package documentation <{+api+}/apidocs/mongodb-driver-core/com/mongodb/event/package-summary.html>`__
264+
244265
.. _java-breaking-changes-v4.8:
245266

246267
Version 4.8 Breaking Changes

0 commit comments

Comments
 (0)
0