|
My Project
1.8.1
C++ Distributed Hash Table
|
Public Member Functions | |
| size_t | maintain (const time_point &now) |
| bool | limit (const time_point &now) |
| bool | empty () const |
Definition at line 27 of file rate_limiter.h.
|
inline |
Return false if quota is reached, insert record and return true otherwise.
Definition at line 37 of file rate_limiter.h.
|
inline |
Clear outdated records and return current quota usage
Definition at line 30 of file rate_limiter.h.