From 133e943a8943512bc41b32bd06bcc8d4ac88b8b9 Mon Sep 17 00:00:00 2001 From: Samuel Souza Date: Thu, 16 Nov 2017 14:37:34 +0000 Subject: [PATCH] Correct documentation --- .../java/com/palantir/atlasdb/qos/ratelimit/RateLimiter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qos-service-impl/src/main/java/com/palantir/atlasdb/qos/ratelimit/RateLimiter.java b/qos-service-impl/src/main/java/com/palantir/atlasdb/qos/ratelimit/RateLimiter.java index b53460dd180..90629818fe7 100644 --- a/qos-service-impl/src/main/java/com/palantir/atlasdb/qos/ratelimit/RateLimiter.java +++ b/qos-service-impl/src/main/java/com/palantir/atlasdb/qos/ratelimit/RateLimiter.java @@ -41,6 +41,7 @@ * to the return value of {@link #acquire()}. * 2) A new method {@link #steal(int)} was added, to support taking permits without waiting * 3) Some static constructors were removed. + * **/ public abstract class RateLimiter { @@ -206,7 +207,7 @@ public boolean tryAcquire() { /** * Acquires the given number of permits from this {@code RateLimiter} if it can be obtained - * without exceeding the specified {@code timeout}, or returns {@code false} immediately (without + * without exceeding the specified {@code timeout}, or returns {@code empty} immediately (without * waiting) if the permits would not have been granted before the timeout expired. * * @param permits the number of permits to acquire