proxygen
EchoService::EchoStats Class Reference

#include <EchoStats.h>

Inheritance diagram for EchoService::EchoStats:
MockEchoStats testing::StrictMock< MockEchoStats > testing::StrictMock< MockEchoStats > testing::StrictMock< MockEchoStats >

Public Member Functions

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

Constructor & Destructor Documentation

virtual EchoService::EchoStats::~EchoStats ( )
inlinevirtual

Definition at line 21 of file EchoStats.h.

21  {
22  }

Member Function Documentation

virtual uint64_t EchoService::EchoStats::getRequestCount ( )
inlinevirtual

Definition at line 33 of file EchoStats.h.

References reqCount_.

Referenced by EchoService::EchoHandler::onEOM().

33  {
34  return reqCount_;
35  }
virtual void EchoService::EchoStats::recordRequest ( )
inlinevirtual

Definition at line 29 of file EchoStats.h.

References reqCount_.

Referenced by EchoService::EchoHandler::onRequest().

29  {
30  ++reqCount_;
31  }

Member Data Documentation

uint64_t EchoService::EchoStats::reqCount_ {0}
private

Definition at line 38 of file EchoStats.h.

Referenced by getRequestCount(), and recordRequest().


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