Skip to content

Commit

Permalink
Minor Api doc fixes (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf authored Sep 26, 2023
1 parent 7ebdd78 commit 731ae40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
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

0 comments on commit 731ae40

Please sign in to comment.