Class ConsumerStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.ConsumerStatsImpl
- All Implemented Interfaces:
ConsumerStats
Consumer statistics.
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of available message permits for the consumer.int
Number of average messages per entry for the consumer consumed.boolean
Flag to verify if consumer is blocked due to reaching threshold of unacked messages.long
Total bytes delivered to consumer (bytes).double
The 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.long
Deprecated.long
long
Deprecated.double
Total rate of message ack (msg/s).Metadata (key/value strings) associated with this consumer.long
Total messages delivered to consumer (msg).double
Total rate of messages delivered to the consumer (msg/s).double
Total rate of messages redelivered by this consumer (msg/s).double
Total throughput delivered to the consumer (bytes/s).The read position of the cursor when the consumer joining.int
Number 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
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ConsumerStatsImpl stats) void
setAddress
(String address) void
setClientVersion
(String clientVersion) void
setConnectedSince
(String connectedSince) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 aSubscriptionType
that tracks individual message acknowledgement, likeSubscriptionType.Shared
orSubscriptionType.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
Deprecated. -
lastConsumedTimestamp
Deprecated. -
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:
getAddress
in interfaceConsumerStats
-
setAddress
-
getConnectedSince
- Specified by:
getConnectedSince
in interfaceConsumerStats
-
setConnectedSince
-
getClientVersion
- Specified by:
getClientVersion
in interfaceConsumerStats
-
setClientVersion
-
getReadPositionWhenJoining
- Specified by:
getReadPositionWhenJoining
in interfaceConsumerStats
-
getLastAckedTime
-
getLastConsumedTime
-