Package google.registry.proxy.quota
Class QuotaConfig
java.lang.Object
google.registry.proxy.quota.QuotaConfig
Value class that stores the quota configuration for a protocol.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A special value of token amount that indicates unlimited tokens. -
Constructor Summary
ConstructorDescriptionQuotaConfig
(ProxyConfig.Quota quota, String protocolName) Constructs aQuotaConfig
from aProxyConfig.Quota
. -
Method Summary
-
Field Details
-
SENTINEL_UNLIMITED_TOKENS
public static final int SENTINEL_UNLIMITED_TOKENSA special value of token amount that indicates unlimited tokens.- See Also:
-
-
Constructor Details
-
QuotaConfig
Constructs aQuotaConfig
from aProxyConfig.Quota
.Each
ProxyConfig.Quota.QuotaGroup
is keyed to all theuserId
s it contains. This allows for fast lookup with auserId
.
-