Skip to content

Commit

Permalink
Fix name of attribute in Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Dec 16, 2024
1 parent 6848ce9 commit 22f938b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions java/org/apache/catalina/filters/RateLimitFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
* the bucket time ends and a new bucket starts.
* </p>
* <p>
* The RateLimiter implementation can be set via the <code>className</code> init param. The default implementation,
* <code>org.apache.catalina.util.FastRateLimiter</code>, is optimized for efficiency and low overhead so it converts
* some configured values to more efficient values. For example, a configuration of a 60 seconds time bucket is
* converted to 65.536 seconds. That allows for very fast bucket calculation using bit shift arithmetic. In order to
* remain true to the user intent, the configured number of requests is then multiplied by the same ratio, so a
* The RateLimiter implementation can be set via the <code>rateLimitClassName</code> init param. The default
* implementation, <code>org.apache.catalina.util.FastRateLimiter</code>, is optimized for efficiency and low overhead
* so it converts some configured values to more efficient values. For example, a configuration of a 60 seconds time
* bucket is converted to 65.536 seconds. That allows for very fast bucket calculation using bit shift arithmetic. In
* order to remain true to the user intent, the configured number of requests is then multiplied by the same ratio, so a
* configuration of 100 Requests per 60 seconds, has the real values of 109 Requests per 65 seconds. You can specify a
* different class as long as it implements the <code>org.apache.catalina.util.RateLimiter</code> interface.
* </p>
Expand Down

0 comments on commit 22f938b

Please sign in to comment.