接口 ProducerStats
- 所有超级接口:
Serializable
Producer statistics recorded by client.
All the stats are relative to the last recording period. The interval of the stats refreshes is configured with
ClientBuilder.statsInterval(long, java.util.concurrent.TimeUnit) with a default of 1 minute.
-
方法概要
修饰符和类型方法说明longlonglonglongintdoubledoubledoubledoubledoubledoubledoubledoublelonglonglonglong
-
方法详细资料
-
getNumMsgsSent
long getNumMsgsSent()- 返回:
- the number of messages published in the last interval
-
getNumBytesSent
long getNumBytesSent()- 返回:
- the number of bytes sent in the last interval
-
getNumSendFailed
long getNumSendFailed()- 返回:
- the number of failed send operations in the last interval
-
getNumAcksReceived
long getNumAcksReceived()- 返回:
- the number of send acknowledges received by broker in the last interval
-
getSendMsgsRate
double getSendMsgsRate()- 返回:
- the messages send rate in the last interval
-
getSendBytesRate
double getSendBytesRate()- 返回:
- the bytes send rate in the last interval
-
getSendLatencyMillis50pct
double getSendLatencyMillis50pct()- 返回:
- the 50th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis75pct
double getSendLatencyMillis75pct()- 返回:
- the 75th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis95pct
double getSendLatencyMillis95pct()- 返回:
- the 95th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis99pct
double getSendLatencyMillis99pct()- 返回:
- the 99th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillis999pct
double getSendLatencyMillis999pct()- 返回:
- the 99.9th percentile of the send latency in milliseconds for the last interval
-
getSendLatencyMillisMax
double getSendLatencyMillisMax()- 返回:
- the max send latency in milliseconds for the last interval
-
getTotalMsgsSent
long getTotalMsgsSent()- 返回:
- the total number of messages published by this producer
-
getTotalBytesSent
long getTotalBytesSent()- 返回:
- the total number of bytes sent by this producer
-
getTotalSendFailed
long getTotalSendFailed()- 返回:
- the total number of failed send operations
-
getTotalAcksReceived
long getTotalAcksReceived()- 返回:
- the total number of send acknowledges received by broker
-
getPendingQueueSize
int getPendingQueueSize()- 返回:
- current pending send-message queue size of the producer
-