diff --git a/src/main/java/io/nats/client/StatisticsCollector.java b/src/main/java/io/nats/client/StatisticsCollector.java index b7de6514d..38526d3da 100644 --- a/src/main/java/io/nats/client/StatisticsCollector.java +++ b/src/main/java/io/nats/client/StatisticsCollector.java @@ -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); @@ -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); @@ -117,15 +119,15 @@ public interface StatisticsCollector extends Statistics { /** * Registers a Socket read by this connection. - *

- * NOTE: Implementations should only count this if advanced stats are enabled. + *

NOTE: Implementations should only count this if advanced stats are enabled.

+ * @param bytes the number of bytes being read */ void registerRead(long bytes); /** * Registers a Socket write by this connection. - *

- * NOTE: Implementations should only count this if advanced stats are enabled. + *

NOTE: Implementations should only count this if advanced stats are enabled.

+ * @param bytes the number of bytes being written */ void registerWrite(long bytes); } diff --git a/src/main/java/io/nats/client/support/JsonUtils.java b/src/main/java/io/nats/client/support/JsonUtils.java index a1275a0b2..2048b0ec3 100644 --- a/src/main/java/io/nats/client/support/JsonUtils.java +++ b/src/main/java/io/nats/client/support/JsonUtils.java @@ -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) {