Adaptive Limiter Registry
Registry for managing multiple named adaptive limiters.
Example usage:
val registry = AdaptiveLimiterRegistry.create()
val apiLimiter = registry.getOrCreate("downstream-api") {
initialLimit = 20
}Content copied to clipboard
Types
Link copied to clipboard
object Companion
Factory for AdaptiveLimiterRegistry.
Functions
Link copied to clipboard
Gets an existing adaptive limiter by name.
Link copied to clipboard
Gets statistics for all adaptive limiters.
Link copied to clipboard
suspend fun getOrCreate(name: String, configure: AdaptiveLimiterConfigBuilder.() -> Unit? = null): AdaptiveLimiter
Gets an existing adaptive limiter or creates a new one.
Link copied to clipboard
Removes an adaptive limiter from the registry.