Class ConsumerStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.ConsumerStatsImpl
- All Implemented Interfaces:
org.apache.pulsar.common.policies.data.ConsumerStats
public class ConsumerStatsImpl
extends Object
implements org.apache.pulsar.common.policies.data.ConsumerStats
Consumer statistics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintNumber of available message permits for the consumer.intNumber of average messages per entry for the consumer consumed.booleanFlag to verify if consumer is blocked due to reaching threshold of unacked messages.longTotal bytes delivered to consumer (bytes).doubleThe total rate of chunked messages delivered to this consumer.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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ConsumerStatsImpl stats) voidsetAddress(String address) voidsetClientVersion(String clientVersion) voidsetConnectedSince(String connectedSince) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.common.policies.data.ConsumerStats
getAvailablePermits, getAvgMessagesPerEntry, getBytesOutCounter, getChunkedMessageRate, getConsumerName, getKeyHashRanges, getLastAckedTimestamp, getLastConsumedFlowTimestamp, getLastConsumedTimestamp, getMessageAckRate, getMetadata, getMsgOutCounter, getMsgRateOut, getMsgRateRedeliver, getMsgThroughputOut, getUnackedMessages, isBlockedConsumerOnUnackedMsgs
-
Field Details
-
msgRateOut
public double msgRateOutTotal rate of messages delivered to the consumer (msg/s). -
msgThroughputOut
public double msgThroughputOutTotal throughput delivered to the consumer (bytes/s). -
bytesOutCounter
public long bytesOutCounterTotal bytes delivered to consumer (bytes). -
msgOutCounter
public long msgOutCounterTotal messages delivered to consumer (msg). -
msgRateRedeliver
public double msgRateRedeliverTotal rate of messages redelivered by this consumer (msg/s). -
messageAckRate
public double messageAckRateTotal rate of message ack (msg/s). -
chunkedMessageRate
public double chunkedMessageRateThe total rate of chunked messages delivered to this consumer. -
consumerName
Name of the consumer. -
availablePermits
public int availablePermitsNumber of available message permits for the consumer. -
unackedMessages
public int unackedMessagesNumber 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. -
avgMessagesPerEntry
public int avgMessagesPerEntryNumber of average messages per entry for the consumer consumed. -
blockedConsumerOnUnackedMsgs
public boolean blockedConsumerOnUnackedMsgsFlag to verify if consumer is blocked due to reaching threshold of unacked messages. -
readPositionWhenJoining
The read position of the cursor when the consumer joining. -
lastAckedTimestamp
public long lastAckedTimestamp -
lastConsumedTimestamp
public long lastConsumedTimestamp -
lastConsumedFlowTimestamp
public long lastConsumedFlowTimestamp -
keyHashRanges
Hash ranges assigned to this consumer if is Key_Shared sub mode. -
metadata
Metadata (key/value strings) associated with this consumer.
-
-
Constructor Details
-
ConsumerStatsImpl
public ConsumerStatsImpl()
-
-
Method Details
-
add
-
getAddress
- Specified by:
getAddressin interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
setAddress
-
getConnectedSince
- Specified by:
getConnectedSincein interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
setConnectedSince
-
getClientVersion
- Specified by:
getClientVersionin interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-
setClientVersion
-
getReadPositionWhenJoining
- Specified by:
getReadPositionWhenJoiningin interfaceorg.apache.pulsar.common.policies.data.ConsumerStats
-