Interface ConsumerStats
public interface ConsumerStats
Consumer statistics.
-
Method Summary
Modifier and TypeMethodDescriptionAddress of this consumer.intNumber of available message permits for the consumer.intNumber of average messages per entry for the consumer consumed.longTotal bytes delivered to consumer (bytes).doubleThe total rate of chunked messages delivered to this consumer.Client library version.Timestamp of connection.Name of the consumer.Hash ranges assigned to this consumer if is Key_Shared sub mode.longlonglongdoubleTotal rate of message ack(msg/s).Metadata (key/value strings) associated with this consumer.longTotal messages delivered to consumer (msg).doubleTotal rate of messages delivered to the consumer (msg/s).doubleTotal rate of messages redelivered by this consumer (msg/s).doubleTotal throughput delivered to the consumer (bytes/s).The read position of the cursor when the consumer joining.intNumber of unacknowledged messages for the consumer, where an unacknowledged message is one that has been sent to the consumer but not yet acknowledged.booleanFlag to verify if consumer is blocked due to reaching threshold of unacked messages.
-
Method Details
-
getMsgRateOut
double getMsgRateOut()Total rate of messages delivered to the consumer (msg/s). -
getMsgThroughputOut
double getMsgThroughputOut()Total throughput delivered to the consumer (bytes/s). -
getBytesOutCounter
long getBytesOutCounter()Total bytes delivered to consumer (bytes). -
getMsgOutCounter
long getMsgOutCounter()Total messages delivered to consumer (msg). -
getMsgRateRedeliver
double getMsgRateRedeliver()Total rate of messages redelivered by this consumer (msg/s). -
getMessageAckRate
double getMessageAckRate()Total rate of message ack(msg/s). -
getChunkedMessageRate
double getChunkedMessageRate()The total rate of chunked messages delivered to this consumer. -
getConsumerName
String getConsumerName()Name of the consumer. -
getAvailablePermits
int getAvailablePermits()Number of available message permits for the consumer. -
getUnackedMessages
int getUnackedMessages()Number of unacknowledged messages for the consumer, where an unacknowledged message is one that has been sent to the consumer but not yet acknowledged. This field is only meaningful when using aSubscriptionTypethat tracks individual message acknowledgement, likeSubscriptionType.SharedorSubscriptionType.Key_Shared. -
getAvgMessagesPerEntry
int getAvgMessagesPerEntry()Number of average messages per entry for the consumer consumed. -
isBlockedConsumerOnUnackedMsgs
boolean isBlockedConsumerOnUnackedMsgs()Flag to verify if consumer is blocked due to reaching threshold of unacked messages. -
getReadPositionWhenJoining
String getReadPositionWhenJoining()The read position of the cursor when the consumer joining. -
getAddress
String getAddress()Address of this consumer. -
getConnectedSince
String getConnectedSince()Timestamp of connection. -
getClientVersion
String getClientVersion()Client library version. -
getLastAckedTimestamp
long getLastAckedTimestamp() -
getLastConsumedTimestamp
long getLastConsumedTimestamp() -
getLastConsumedFlowTimestamp
long getLastConsumedFlowTimestamp() -
getKeyHashRanges
Hash ranges assigned to this consumer if is Key_Shared sub mode. -
getMetadata
Metadata (key/value strings) associated with this consumer.
-