public class RateLimiter extends Object
Modifier and Type | Method and Description |
---|---|
double |
acquire()
Attempt to acquire a permit to perform an operation.
|
static RateLimiter |
create(double maxOpsPerSecond) |
public static RateLimiter create(double maxOpsPerSecond)
public double acquire()
Copyright © 2022 Apache Software Foundation. All rights reserved.