public class AtomicRateLimiter.AtomicRateLimiterMetrics extends java.lang.Object implements RateLimiter.Metrics
Metrics with some implementation specific details| Modifier and Type | Method and Description |
|---|---|
int |
getAvailablePermissions()
Estimates count of available permissions.
|
long |
getCycle() |
long |
getNanosToWait() |
int |
getNumberOfWaitingThreads()
Returns an estimate of the number of threads waiting for permission in this JVM process.
|
public int getNumberOfWaitingThreads()
This method is typically used for debugging and testing purposes.
getNumberOfWaitingThreads in interface RateLimiter.Metricspublic int getAvailablePermissions()
This method is typically used for debugging and testing purposes.
getAvailablePermissions in interface RateLimiter.Metricspublic long getNanosToWait()
public long getCycle()