mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Add comments to RkTagThrottleCollection
This commit is contained in:
parent
28cb7d956f
commit
3efe5803fd
@ -60,6 +60,7 @@ public:
|
|||||||
RkTagThrottleCollection(RkTagThrottleCollection&& other);
|
RkTagThrottleCollection(RkTagThrottleCollection&& other);
|
||||||
RkTagThrottleCollection& operator=(RkTagThrottleCollection&& other);
|
RkTagThrottleCollection& operator=(RkTagThrottleCollection&& other);
|
||||||
|
|
||||||
|
// Set or update an auto throttling limit for the specified tag and priority combination.
|
||||||
// Returns the TPS rate if the throttle is updated, otherwise returns an empty optional
|
// Returns the TPS rate if the throttle is updated, otherwise returns an empty optional
|
||||||
Optional<double> autoThrottleTag(UID id,
|
Optional<double> autoThrottleTag(UID id,
|
||||||
TransactionTag const& tag,
|
TransactionTag const& tag,
|
||||||
@ -67,6 +68,7 @@ public:
|
|||||||
Optional<double> tpsRate = Optional<double>(),
|
Optional<double> tpsRate = Optional<double>(),
|
||||||
Optional<double> expiration = Optional<double>());
|
Optional<double> expiration = Optional<double>());
|
||||||
|
|
||||||
|
// Set or update a manual tps rate limit for the specified tag and priority combination
|
||||||
void manualThrottleTag(UID id,
|
void manualThrottleTag(UID id,
|
||||||
TransactionTag const& tag,
|
TransactionTag const& tag,
|
||||||
TransactionPriority priority,
|
TransactionPriority priority,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user