-
Notifications
You must be signed in to change notification settings - Fork 43
[JAVA] Relax the CMAP documentation requirement for durations in events #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
source/whats-new.txt
Outdated
- The ``ConnectionCheckedOutEvent.getElapsedTime`` method now includes the time | ||
taken to create the connection. That is, the "timer" starts before the | ||
connection is confirmed, rather than after. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think more technical detail would be helpful here. I'd probably just paste in the Jira notes and maybe edit them slightly.
Also, I think the ticket describes more changes than I see here; is there another ticket for those?
1b774b1
to
7616b01
Compare
Note: Vale error is for use of "Fail" in the event name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a couple quick changes!
source/whats-new.txt
Outdated
@@ -59,6 +59,18 @@ The 5.0 driver release introduces the following features: | |||
``isNumber()`` and ``asNumber()`` methods match the Java responses for | |||
equivalent ``Decimal128`` values. | |||
|
|||
- The ``getElapsedTime`` method on ``com.mongodb.event.ConnectionReadyEvent`` | |||
includes the time taken to deliver the ``ConnectionPoolListener``. That is, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I: per ticket, i think this should be:
includes the time taken to deliver the ``ConnectionPoolListener``. That is, | |
includes the time taken to deliver the ``ConnectionCreatedEvent``. That is, |
source/whats-new.txt
Outdated
@@ -59,6 +59,18 @@ The 5.0 driver release introduces the following features: | |||
``isNumber()`` and ``asNumber()`` methods match the Java responses for | |||
equivalent ``Decimal128`` values. | |||
|
|||
- The ``getElapsedTime`` method on ``com.mongodb.event.ConnectionReadyEvent`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I: In all of our docs that I've seen, we suffix method names with parentheses
- The ``getElapsedTime`` method on ``com.mongodb.event.ConnectionReadyEvent`` | |
- The ``getElapsedTime()`` method on ``com.mongodb.event.ConnectionReadyEvent`` |
source/whats-new.txt
Outdated
the time returned includes the duration of | ||
``com.mongodb.event.ConnectionPoolListener.connectionCreated``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the time returned includes the duration of | |
``com.mongodb.event.ConnectionPoolListener.connectionCreated``. | |
the time returned includes the duration of the | |
``com.mongodb.event.ConnectionPoolListener.connectionCreated()`` method. |
source/whats-new.txt
Outdated
the time returned includes the duration of | ||
``com.mongodb.event.ConnectionPoolListener.connectionCreated``. | ||
|
||
The ``getElapsedTime`` methods on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ``getElapsedTime`` methods on | |
The ``getElapsedTime()`` methods on |
source/whats-new.txt
Outdated
time returned includes the duration of | ||
``com.mongodb.eventConnectionPoolListener.connectionCheckOutStarted``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time returned includes the duration of | |
``com.mongodb.eventConnectionPoolListener.connectionCheckOutStarted``. | |
time returned includes the duration of the | |
``com.mongodb.eventConnectionPoolListener.connectionCheckOutStarted()`` method. |
7616b01
to
6b86e2b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-35270
Staging - https://docs-mongodbcom-staging.corp.mongodb.com/java/docsworker-xlarge/DOCSP-35270/whats-new/#std-label-version-5.0
Self-Review Checklist