Description

Configuration of ThroughputLimit.

Usages

Configuration options

KeyKindTypeDefault ValueDescription
amountVALUEInteger0Number of operations to allow during the relevant time window
durationVALUEDurationPT1SDuration of the time window over which operations will be counted
enable-metricsVALUEBooleanfalseWhether to collect metrics for the throughput limit implementation
fairVALUEBooleanfalseWhether the java.util.concurrent.Semaphore should be java.util.concurrent.Semaphore#isFair()
queue-lengthVALUEInteger0How many requests can be enqueued waiting for a permit
queue-timeoutVALUEDurationPT1SHow long to wait for a permit when enqueued
rate-limiting-algorithmVALUEi.h.c.c.l.RateLimitingAlgorithmTypeTOKEN_BUCKETThe rate limiting algorithm to apply

See the manifest for all available types.