userver: utils::TokenBucket::RefillPolicy Struct Reference
Loading...
Searching...
No Matches
utils::TokenBucket::RefillPolicy Struct Reference

#include <userver/utils/token_bucket.hpp>

Detailed Description

Token bucket refill policy.

Definition at line 22 of file token_bucket.hpp.

Public Attributes

size_t amount {1}
 Refill amount (zero disables refills)
 
Duration interval {Duration::max()}
 Refill interval (zero makes bucket to instantly refill)
 

Member Data Documentation

◆ amount

size_t utils::TokenBucket::RefillPolicy::amount {1}

Refill amount (zero disables refills)

Definition at line 24 of file token_bucket.hpp.

◆ interval

Duration utils::TokenBucket::RefillPolicy::interval {Duration::max()}

Refill interval (zero makes bucket to instantly refill)

Definition at line 26 of file token_bucket.hpp.


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