Package io.nats.client
Interface Statistics
-
public interface StatisticsConnections can provide an instance of Statistics,getStatistics(). The statistics object provides information about key metrics related to the connection over its entire lifecycle.The Statistics toString() provides a summary of the statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDroppedCount()longgetInBytes()longgetInMsgs()longgetOutBytes()longgetOutMsgs()longgetReconnects()
-
-
-
Method Detail
-
getInMsgs
long getInMsgs()
- Returns:
- the total number of messages that have come in to this connection.
-
getOutMsgs
long getOutMsgs()
- Returns:
- the total number of messages that have gone out of this connection.
-
getInBytes
long getInBytes()
- Returns:
- the total number of message bytes that have come in to this connection.
-
getOutBytes
long getOutBytes()
- Returns:
- the total number of message bytes that have gone out of to this connection.
-
getReconnects
long getReconnects()
- Returns:
- the total number of times this connection has tried to reconnect.
-
getDroppedCount
long getDroppedCount()
- Returns:
- the total number of messages dropped by this connection across all slow consumers.
-
-