Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::PeriodicUpdate Class Reference

#include <periodic_update.h>

Public Member Functions

 PeriodicUpdate (Duration period)
 
GRPC_MUST_USE_RESULT bool Tick ()
 

Private Member Functions

GRPC_MUST_USE_RESULT bool MaybeEndPeriod ()
 

Private Attributes

int64_t expected_updates_per_period_ = 1
 
const Duration period_
 
Timestamp period_start_ = ExecCtx::Get()->Now()
 
std::atomic< int64_tupdates_remaining_ {1}
 

Detailed Description

Definition at line 36 of file periodic_update.h.

Constructor & Destructor Documentation

◆ PeriodicUpdate()

grpc_core::PeriodicUpdate::PeriodicUpdate ( Duration  period)
inlineexplicit

Definition at line 38 of file periodic_update.h.

Member Function Documentation

◆ MaybeEndPeriod()

bool grpc_core::PeriodicUpdate::MaybeEndPeriod ( )
private

Definition at line 25 of file periodic_update.cc.

◆ Tick()

GRPC_MUST_USE_RESULT bool grpc_core::PeriodicUpdate::Tick ( )
inline

Definition at line 41 of file periodic_update.h.

Member Data Documentation

◆ expected_updates_per_period_

int64_t grpc_core::PeriodicUpdate::expected_updates_per_period_ = 1
private

Definition at line 64 of file periodic_update.h.

◆ period_

const Duration grpc_core::PeriodicUpdate::period_
private

Definition at line 62 of file periodic_update.h.

◆ period_start_

Timestamp grpc_core::PeriodicUpdate::period_start_ = ExecCtx::Get()->Now()
private

Definition at line 63 of file periodic_update.h.

◆ updates_remaining_

std::atomic<int64_t> grpc_core::PeriodicUpdate::updates_remaining_ {1}
private

Definition at line 65 of file periodic_update.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36