Skip to content

Commit

Permalink
Clarify complete expiry of distribution statistics in Javadoc (#4581)
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored Jan 17, 2024
1 parent c790b47 commit 6f61874
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ public B maximumExpectedValue(@Nullable Duration max) {
* over time to give greater weight to recent samples (exception: histogram counts are
* cumulative for those systems that expect cumulative histogram buckets). Samples are
* accumulated to such statistics in ring buffers which rotate after this expiry, with
* a buffer length of {@link #distributionStatisticBufferLength(Integer)}.
* a buffer length of {@link #distributionStatisticBufferLength(Integer)}, hence
* complete expiry happens after this expiry * buffer length.
* @param expiry The amount of time samples are accumulated to a histogram before it
* is reset and rotated.
* @return This builder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ public Double getMaximumExpectedValueAsDouble() {
* greater weight to recent samples (exception: histogram counts are cumulative for
* those systems that expect cumulative histogram buckets). Samples are accumulated to
* such statistics in ring buffers which rotate after this expiry, with a buffer
* length of {@link #bufferLength}.
* length of {@link #bufferLength}, hence complete expiry happens after this expiry *
* buffer length.
* @return The amount of time samples are accumulated to a histogram before it is
* reset and rotated.
*/
Expand Down Expand Up @@ -426,7 +427,8 @@ public Builder maximumExpectedValue(@Nullable Double max) {
* greater weight to recent samples (exception: histogram counts are cumulative
* for those systems that expect cumulative histogram buckets). Samples are
* accumulated to such statistics in ring buffers which rotate after this expiry,
* with a buffer length of {@link #bufferLength}.
* with a buffer length of {@link #bufferLength}, hence complete expiry happens
* after this expiry * buffer length.
* @param expiry The amount of time samples are accumulated to decaying
* distribution statistics before they are reset and rotated.
* @return This builder.
Expand Down

0 comments on commit 6f61874

Please sign in to comment.