#include <userver/utils/token_bucket.hpp>
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) | |
size_t utils::TokenBucket::RefillPolicy::amount {1} |
Refill amount (zero disables refills)
Definition at line 24 of file token_bucket.hpp.
Duration utils::TokenBucket::RefillPolicy::interval {Duration::max()} |
Refill interval (zero makes bucket to instantly refill)
Definition at line 26 of file token_bucket.hpp.