Package io.quarkiverse.bucket4j.runtime
Interface RateLimiterConfig.Bucket
-
- Enclosing interface:
- RateLimiterConfig
public static interface RateLimiterConfig.Bucketrepresent one single bucket
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringidentityResolver()Identity resolver allow to segment the population.List<RateLimiterConfig.Limit>limits()limits enforced for this bucketBooleanshared()If true, permitted uses are shared for all methods using the same bucket id.
-
-
-
Method Detail
-
identityResolver
@WithDefault("io.quarkiverse.bucket4j.runtime.resolver.ConstantResolver") String identityResolver()Identity resolver allow to segment the population. Each resolved identity key will have its own quota. this must be a valid CDI bean implementing IdentityResolver.
-
limits
List<RateLimiterConfig.Limit> limits()
limits enforced for this bucket
-
shared
@WithDefault("false") Boolean shared()If true, permitted uses are shared for all methods using the same bucket id. If false, each method has its own quota.
-
-