Class SubscriptionStatsImpl
java.lang.Object
org.apache.pulsar.common.policies.data.stats.SubscriptionStatsImpl
- All Implemented Interfaces:
SubscriptionStats
- Direct Known Subclasses:
NonPersistentSubscriptionStatsImpl
Statistics about subscription.
-
Field Summary
Modifier and TypeFieldDescriptionThe name of the consumer that is active for single active consumer subscriptions i.e.boolean
Whether out of order delivery is allowed on the Key_Shared subscription.long
Size of backlog in byte, -1 means that the argument "subscriptionBacklogSize" is false when calling the API.boolean
Flag to verify if subscription is blocked due to reaching threshold of unacked messages.long
Total bytes delivered to consumer (bytes).int
Chunked message dispatch rate.List of connected consumers on this subscription w/ their stats.This is for Key_Shared subscription to get the recentJoinedConsumers in the Key_Shared subscription.long
The size of DelayedDeliveryTracer memory usage.long
Get the publish time of the earliest message in the backlog.long
long
long
long
boolean
Tells whether this subscription is durable or ephemeral (eg.: from a reader).boolean
Mark that the subscription state is kept in sync across different regions.Whether the Key_Shared subscription mode is AUTO_SPLIT or STICKY.long
Last acked message timestamp.long
Last received consume flow command timestamp.long
Last consume message timestamp.long
Last message expire execution timestamp.long
Last MarkDelete position advanced timestamp.double
Total rate of message ack(msg/s).long
Number of entries in the subscription backlog.long
Number of entries in the subscription backlog that do not contain the delay messages.long
Number of delayed messages currently being tracked.long
Total messages delivered to consumer (msg).double
Total rate of messages expired on this subscription (msg/s).double
Total rate of messages delivered on this subscription (msg/s).double
Total rate of messages redelivered on this subscription (msg/s).double
Total throughput delivered on this subscription (bytes/s).int
The number of non-contiguous deleted messages ranges.int
The serialized size of non-contiguous deleted messages ranges.SubscriptionProperties (key/value strings) associated with this subscribe.long
Total messages expired on this subscription.The subscription type as defined bySubscriptionType
.long
Number of unacknowledged messages for the subscription, where an unacknowledged message is one that has been sent to a consumer but not yet acknowledged. -
Constructor Summary
-
Method Summary
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.SubscriptionStats
getActiveConsumerName, getBacklogSize, getBytesOutCounter, getChunkedMessageRate, getConsumers, getConsumersAfterMarkDeletePosition, getDelayedMessageIndexSizeInBytes, getEarliestMsgPublishTimeInBacklog, getFilterAcceptedMsgCount, getFilterProcessedMsgCount, getFilterRejectedMsgCount, getFilterRescheduledMsgCount, getKeySharedMode, getLastAckedTimestamp, getLastConsumedFlowTimestamp, getLastConsumedTimestamp, getLastExpireTimestamp, getLastMarkDeleteAdvancedTimestamp, getMessageAckRate, getMsgBacklog, getMsgBacklogNoDelayed, getMsgDelayed, getMsgOutCounter, getMsgRateExpired, getMsgRateOut, getMsgRateRedeliver, getMsgThroughputOut, getNonContiguousDeletedMessagesRanges, getNonContiguousDeletedMessagesRangesSerializedSize, getSubscriptionProperties, getTotalMsgExpired, getType, getUnackedMessages, isAllowOutOfOrderDelivery, isBlockedSubscriptionOnUnackedMsgs, isDurable, isReplicated
-
Field Details
-
msgRateOut
public double msgRateOutTotal rate of messages delivered on this subscription (msg/s). -
msgThroughputOut
public double msgThroughputOutTotal throughput delivered on this subscription (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 on this subscription (msg/s). -
messageAckRate
public double messageAckRateTotal rate of message ack(msg/s). -
chunkedMessageRate
public int chunkedMessageRateChunked message dispatch rate. -
msgBacklog
public long msgBacklogNumber of entries in the subscription backlog. -
backlogSize
public long backlogSizeSize of backlog in byte, -1 means that the argument "subscriptionBacklogSize" is false when calling the API. -
earliestMsgPublishTimeInBacklog
public long earliestMsgPublishTimeInBacklogGet the publish time of the earliest message in the backlog. -
msgBacklogNoDelayed
public long msgBacklogNoDelayedNumber of entries in the subscription backlog that do not contain the delay messages. -
blockedSubscriptionOnUnackedMsgs
public boolean blockedSubscriptionOnUnackedMsgsFlag to verify if subscription is blocked due to reaching threshold of unacked messages. -
msgDelayed
public long msgDelayedNumber of delayed messages currently being tracked. -
unackedMessages
public long unackedMessagesNumber of unacknowledged messages for the subscription, where an unacknowledged message is one that has been sent to a consumer but not yet acknowledged. Calculated by summing allConsumerStatsImpl.unackedMessages
for this subscription. SeeConsumerStatsImpl.unackedMessages
for additional details. -
type
The subscription type as defined bySubscriptionType
. -
activeConsumerName
The name of the consumer that is active for single active consumer subscriptions i.e. failover or exclusive. -
msgRateExpired
public double msgRateExpiredTotal rate of messages expired on this subscription (msg/s). -
totalMsgExpired
public long totalMsgExpiredTotal messages expired on this subscription. -
lastExpireTimestamp
public long lastExpireTimestampLast message expire execution timestamp. -
lastConsumedFlowTimestamp
public long lastConsumedFlowTimestampLast received consume flow command timestamp. -
lastConsumedTimestamp
public long lastConsumedTimestampLast consume message timestamp. -
lastAckedTimestamp
public long lastAckedTimestampLast acked message timestamp. -
lastMarkDeleteAdvancedTimestamp
public long lastMarkDeleteAdvancedTimestampLast MarkDelete position advanced timestamp. -
consumers
List of connected consumers on this subscription w/ their stats. -
isDurable
public boolean isDurableTells whether this subscription is durable or ephemeral (eg.: from a reader). -
isReplicated
public boolean isReplicatedMark that the subscription state is kept in sync across different regions. -
allowOutOfOrderDelivery
public boolean allowOutOfOrderDeliveryWhether out of order delivery is allowed on the Key_Shared subscription. -
consumersAfterMarkDeletePosition
This is for Key_Shared subscription to get the recentJoinedConsumers in the Key_Shared subscription. -
nonContiguousDeletedMessagesRanges
public int nonContiguousDeletedMessagesRangesThe number of non-contiguous deleted messages ranges. -
nonContiguousDeletedMessagesRangesSerializedSize
public int nonContiguousDeletedMessagesRangesSerializedSizeThe serialized size of non-contiguous deleted messages ranges. -
delayedMessageIndexSizeInBytes
public long delayedMessageIndexSizeInBytesThe size of DelayedDeliveryTracer memory usage. -
bucketDelayedIndexStats
-
subscriptionProperties
SubscriptionProperties (key/value strings) associated with this subscribe. -
filterProcessedMsgCount
public long filterProcessedMsgCount -
filterAcceptedMsgCount
public long filterAcceptedMsgCount -
filterRejectedMsgCount
public long filterRejectedMsgCount -
filterRescheduledMsgCount
public long filterRescheduledMsgCount
-
-
Constructor Details
-
SubscriptionStatsImpl
public SubscriptionStatsImpl()
-
-
Method Details
-
reset
public void reset() -
add
-