Interface RateLimiterRuntimeConfig


  • @ConfigMapping(prefix="quarkus.rate-limiter")
    @ConfigRoot(phase=RUN_TIME)
    public interface RateLimiterRuntimeConfig
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean enabled()
      rate limiter will be completely disabled if false
      @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Duration keepAfterRefill()
      Duration during which the bucket is kept after last refill if untouched
      int maxSize()
      Maximum number of entries in the underlying cache
    • Method Detail

      • enabled

        @WithDefault("true")
        boolean enabled()
        rate limiter will be completely disabled if false
      • maxSize

        @WithDefault("1000")
        int maxSize()
        Maximum number of entries in the underlying cache
      • keepAfterRefill

        @WithDefault("1H")
        @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class)
        @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Duration keepAfterRefill()
        Duration during which the bucket is kept after last refill if untouched