AWS SDK for C++AWS SDK for C++ Version 1.11.790 |
#include <DefaultRateLimiter.h>
High precision rate limiter. If you need to limit your bandwidth by a budget, this is very likely the implementation you want.
Definition at line 23 of file DefaultRateLimiter.h.
Definition at line 25 of file DefaultRateLimiter.h.
Definition at line 28 of file DefaultRateLimiter.h.
Definition at line 27 of file DefaultRateLimiter.h.
CLOCK::now
Initializes state, starts counts, does some basic validation.
Definition at line 33 of file DefaultRateLimiter.h.
Same as ApplyCost() but then goes ahead and sleeps the current thread.
Implements Aws::Utils::RateLimits::RateLimiterInterface.
Definition at line 99 of file DefaultRateLimiter.h.
Calculates time in milliseconds that should be delayed before letting anymore data through.
Implements Aws::Utils::RateLimits::RateLimiterInterface.
Definition at line 58 of file DefaultRateLimiter.h.
false
Update the bandwidth rate to allow.
Implements Aws::Utils::RateLimits::RateLimiterInterface.
Definition at line 109 of file DefaultRateLimiter.h.