Skip to content

io.helidon.common.concurrency.limits.ThroughputLimit

Description

Configuration of ThroughputLimit

Configuration options

KeyTypeDefaultDescription
durationDurationPT1SDuration of the time window over which operations will be counted
queue-timeoutDurationPT1SHow long to wait for a permit when enqueued
amountInteger0Number of operations to allow during the relevant time window
rate-limiting-algorithmRateLimitingAlgorithmTypeTOKEN_BUCKETThe rate limiting algorithm to apply
enable-metricsBooleanfalseWhether to collect metrics for the throughput limit implementation
fairBooleanfalseWhether the java.util.concurrent.Semaphore should be java.util.concurrent.Semaphore#isFair()
queue-lengthInteger0How many requests can be enqueued waiting for a permit

Usages


See the manifest for all available types.