Skip to content

Commit fd9690f

Browse files
authored
[JAVA] Relax the CMAP documentation requirement for durations in events (#501)
* what's new: connection even time
1 parent 8e11afb commit fd9690f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/whats-new.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ The 5.0 driver release introduces the following features:
5959
``isNumber()`` and ``asNumber()`` methods match the Java responses for
6060
equivalent ``Decimal128`` values.
6161

62+
- The ``getElapsedTime()`` method on ``com.mongodb.event.ConnectionReadyEvent``
63+
includes the time taken to deliver the ``ConnectionCreatedEvent``. That is,
64+
the time returned includes the duration of the
65+
``com.mongodb.event.ConnectionPoolListener.connectionCreated()`` method.
66+
67+
The ``getElapsedTime()`` methods on
68+
``com.mongodb.event.ConnectionCheckedOutFailedEvent`` and
69+
``com.mongodb.event.ConnectionCheckedOutEvent`` include the time taken to
70+
deliver the ``com.mongodb.event.ConnectionCheckOutStartedEvent``. That is, the
71+
time returned includes the duration of the
72+
``com.mongodb.eventConnectionPoolListener.connectionCheckOutStarted()`` method.
73+
6274
- The ``org.mongodb.scala.Observable.completeWithUnit()`` method is deprecated.
6375
This relates to a :ref:`breaking change about Observables in this version
6476
<java-breaking-changes-v5.0-observables>`.

0 commit comments

Comments
 (0)