proxygen
PushService::PushStats Class Reference

#include <PushStats.h>

Public Member Functions

virtual ~PushStats ()
 
virtual void recordRequest ()
 
virtual uint64_t getRequestCount ()
 

Private Attributes

uint64_t reqCount_ {0}
 

Detailed Description

Just some dummy class containing request count. Since we keep one instance of this in each class, there is no need of synchronization

Definition at line 19 of file PushStats.h.

Constructor & Destructor Documentation

virtual PushService::PushStats::~PushStats ( )
inlinevirtual

Definition at line 21 of file PushStats.h.

21  {
22  }

Member Function Documentation

virtual uint64_t PushService::PushStats::getRequestCount ( )
inlinevirtual

Definition at line 33 of file PushStats.h.

References reqCount_.

Referenced by PushService::PushRequestHandler::onEOM().

33  {
34  return reqCount_;
35  }
virtual void PushService::PushStats::recordRequest ( )
inlinevirtual

Definition at line 29 of file PushStats.h.

References reqCount_.

Referenced by PushService::PushRequestHandler::onRequest().

29  {
30  ++reqCount_;
31  }

Member Data Documentation

uint64_t PushService::PushStats::reqCount_ {0}
private

Definition at line 38 of file PushStats.h.

Referenced by getRequestCount(), and recordRequest().


The documentation for this class was generated from the following file: