19 #ifndef PULSAR_CPP_BROKERCONSUMERSTATS_H
20 #define PULSAR_CPP_BROKERCONSUMERSTATS_H
22 #include <pulsar/ConsumerType.h>
23 #include <pulsar/Result.h>
24 #include <pulsar/defines.h>
31 class BrokerConsumerStatsImplBase;
37 std::shared_ptr<BrokerConsumerStatsImplBase> impl_;
46 virtual bool isValid()
const;
49 virtual double getMsgRateOut()
const;
52 virtual double getMsgThroughputOut()
const;
55 virtual double getMsgRateRedeliver()
const;
58 virtual const std::string getConsumerName()
const;
61 virtual uint64_t getAvailablePermits()
const;
64 virtual uint64_t getUnackedMessages()
const;
67 virtual bool isBlockedConsumerOnUnackedMsgs()
const;
70 virtual const std::string getAddress()
const;
73 virtual const std::string getConnectedSince()
const;
79 virtual double getMsgRateExpired()
const;
82 virtual uint64_t getMsgBacklog()
const;
85 std::shared_ptr<BrokerConsumerStatsImplBase> getImpl()
const;
87 friend class PulsarWrapper;
88 friend PULSAR_PUBLIC std::ostream &operator<<(std::ostream &os,
const BrokerConsumerStats &obj);
91 BrokerConsumerStatsCallback;
94 #endif // PULSAR_CPP_BROKERCONSUMERSTATS_H