Skip to content
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

Minor Api doc fixes #983

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/main/java/io/nats/client/StatisticsCollector.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
public interface StatisticsCollector extends Statistics {
/**
* Sets whether advanced stats are/should be tracked.
* @param trackAdvanced the advanced tracking flag. set to true to turn on advanced tracking
*/
void setAdvancedTracking(boolean trackAdvanced);

Expand Down Expand Up @@ -92,6 +93,7 @@ public interface StatisticsCollector extends Statistics {

/**
* Increment the total number of message bytes that have come in to this connection.
* @param bytes the number of bytes coming in
*/
void incrementInBytes(long bytes);

Expand All @@ -117,15 +119,15 @@ public interface StatisticsCollector extends Statistics {

/**
* Registers a Socket read by this connection.
* <p>
* NOTE: Implementations should only count this if advanced stats are enabled.
* <p>NOTE: Implementations should only count this if advanced stats are enabled.</p>
* @param bytes the number of bytes being read
*/
void registerRead(long bytes);

/**
* Registers a Socket write by this connection.
* <p>
* NOTE: Implementations should only count this if advanced stats are enabled.
* <p>NOTE: Implementations should only count this if advanced stats are enabled.</p>
* @param bytes the number of bytes being written
*/
void registerWrite(long bytes);
}
1 change: 1 addition & 0 deletions src/main/java/io/nats/client/support/JsonUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public static void addFieldWhenGteMinusOne(StringBuilder sb, String fname, Long
* @param sb string builder
* @param fname fieldname
* @param value field value
* @param gt the number the value must be greater than
*/
public static void addFieldWhenGreaterThan(StringBuilder sb, String fname, Long value, long gt) {
if (value != null && value > gt) {
Expand Down