userver: congestion_control::v2::Controller Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
congestion_control::v2::Controller Class Referenceabstract
+ Inheritance diagram for congestion_control::v2::Controller:

Classes

struct  Config
 

Public Member Functions

 Controller (const std::string &name, v2::Sensor &sensor, Limiter &limiter, Stats &stats, const Config &config)
 
void Start ()
 
void Step ()
 
const std::string & GetName () const
 
void SetEnabled (bool enabled)
 

Protected Member Functions

virtual Limit Update (const v2::Sensor::Data &data)=0
 

Protected Attributes

std::optional< size_t > current_limit_
 

Detailed Description

Definition at line 24 of file v2.hpp.

Member Data Documentation

◆ current_limit_

std::optional<size_t> congestion_control::v2::Controller::current_limit_
protected

Definition at line 48 of file v2.hpp.


The documentation for this class was generated from the following file:
  • userver/congestion_control/controllers/v2.hpp