接口 ConsumerStats
- 所有超级接口:
Serializable
Consumer 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.
-
方法概要
修饰符和类型方法说明Get the size of receiver queue.Get the receiver queue size of sub-consumers.longlonglonglonglonglongdoubledoublelonglonglonglonglonglong
-
方法详细资料
-
getNumMsgsReceived
long getNumMsgsReceived()- 返回:
- Number of messages received in the last interval
-
getNumBytesReceived
long getNumBytesReceived()- 返回:
- Number of bytes received in the last interval
-
getRateMsgsReceived
double getRateMsgsReceived()- 返回:
- Rate of bytes per second received in the last interval
-
getRateBytesReceived
double getRateBytesReceived()- 返回:
- Rate of bytes per second received in the last interval
-
getNumAcksSent
long getNumAcksSent()- 返回:
- Number of message acknowledgments sent in the last interval
-
getNumAcksFailed
long getNumAcksFailed()- 返回:
- Number of message acknowledgments failed in the last interval
-
getNumReceiveFailed
long getNumReceiveFailed()- 返回:
- Number of message receive failed in the last interval
-
getNumBatchReceiveFailed
long getNumBatchReceiveFailed()- 返回:
- Number of message batch receive failed in the last interval
-
getTotalMsgsReceived
long getTotalMsgsReceived()- 返回:
- Total number of messages received by this consumer
-
getTotalBytesReceived
long getTotalBytesReceived()- 返回:
- Total number of bytes received by this consumer
-
getTotalReceivedFailed
long getTotalReceivedFailed()- 返回:
- Total number of messages receive failures
-
getTotaBatchReceivedFailed
long getTotaBatchReceivedFailed()- 返回:
- Total number of messages batch receive failures
-
getTotalAcksSent
long getTotalAcksSent()- 返回:
- Total number of message acknowledgments sent by this consumer
-
getTotalAcksFailed
long getTotalAcksFailed()- 返回:
- Total number of message acknowledgments failures on this consumer
-
getMsgNumInReceiverQueue
Integer getMsgNumInReceiverQueue()Get the size of receiver queue.- 返回:
-
getMsgNumInSubReceiverQueue
Get the receiver queue size of sub-consumers.- 返回:
-