Model am execution rate limit measure unit
| Type Params | Return Type | Name and description |
|---|---|---|
|
double |
getRate()@return The actual rate unit as a double |
|
com.google.common.util.concurrent.RateLimiter |
getRateLimiter()Create a com.google.common.util.concurrent.RateLimiter object for rate unit |
|
static RateUnit |
of(java.lang.String str) |
|
protected double |
parse(java.lang.String limit) |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a rate unit by a double value representing the number of events per second
rate - The rate unit as a double valueCreate a rate unit using a string annotation as `10 sec` ie. 10 per second or `100 / 5 min` 100 events each 5 minutes
str - The rate string
Create a com.google.common.util.concurrent.RateLimiter object for rate unit