proxygen
ProxyService::ProxyStats Class Reference

#include <ProxyStats.h>

Public Member Functions

virtual ~ProxyStats ()
 
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 ProxyStats.h.

Constructor & Destructor Documentation

virtual ProxyService::ProxyStats::~ProxyStats ( )
inlinevirtual

Definition at line 21 of file ProxyStats.h.

21  {
22  }

Member Function Documentation

virtual uint64_t ProxyService::ProxyStats::getRequestCount ( )
inlinevirtual

Definition at line 33 of file ProxyStats.h.

References reqCount_.

33  {
34  return reqCount_;
35  }
virtual void ProxyService::ProxyStats::recordRequest ( )
inlinevirtual

Definition at line 29 of file ProxyStats.h.

References reqCount_.

Referenced by ProxyService::ProxyHandler::onRequest().

29  {
30  ++reqCount_;
31  }

Member Data Documentation

uint64_t ProxyService::ProxyStats::reqCount_ {0}
private

Definition at line 38 of file ProxyStats.h.

Referenced by getRequestCount(), and recordRequest().


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