/** * Acquires the given number of permits from this {@code RateLimiter}, blocking until the request be granted. * * This method is equivalent to {@code acquire(1)}. * * @param permits * the number of permits to acquire */ public synchronized void acquire() throws InterruptedException { acquire(1); }
/** * Acquires the given number of permits from this {@code RateLimiter}, blocking until the request be granted. * * This method is equivalent to {@code acquire(1)}. * * @param permits * the number of permits to acquire */ public synchronized void acquire() throws InterruptedException { acquire(1); }