Class TokenBucketThrottlingStrategy<T extends Request>

java.lang.Object
com.linecorp.armeria.server.throttling.ThrottlingStrategy<T>
com.linecorp.armeria.server.throttling.bucket4j.TokenBucketThrottlingStrategy<T>

@UnstableApi
public final class TokenBucketThrottlingStrategy<T extends Request>
extends ThrottlingStrategy<T>
A ThrottlingStrategy that provides a throttling strategy based on Token-Bucket algorithm. The throttling works by examining the number of requests from the beginning, and throttling if the request rate exceed the configured bucket limits.