public class RateLimitConfigCache extends Object
RateLimitConfigLoader and provides
a 9-level hierarchical lookup for resolving the effective TPS limit.
No Spring dependencies — designed for use inside RepoManager (Java 8).
| Constructor and Description |
|---|
RateLimitConfigCache(RateLimitConfigLoader loader,
int defaultTps) |
| Modifier and Type | Method and Description |
|---|---|
void |
reload()
Reload all policies from the underlying data source.
|
int |
resolveTpsLimit(String endpointTemplate,
Integer projectId,
String clientIp)
Resolve the effective TPS limit for a given endpoint, project, and IP.
|
public RateLimitConfigCache(RateLimitConfigLoader loader, int defaultTps)
public void reload()
public int resolveTpsLimit(String endpointTemplate, Integer projectId, String clientIp)
Lookup order (first match wins):
Copyright © 2026. All rights reserved.