public final class ThrottlingRate extends Object
Constructor and Description |
---|
ThrottlingRate(int numberOfRequests,
String duration)
Constructs a new
ThrottlingRate . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Duration |
getDuration()
Returns the duration of the sliding window.
|
int |
getNumberOfRequests()
Returns the maximum of requests that can be filtered out during the duration.
|
int |
hashCode() |
String |
toString() |
public ThrottlingRate(int numberOfRequests, String duration)
ThrottlingRate
.numberOfRequests
- the maximum of requests that can be filtered out during the duration.duration
- the string representing the duration of the sliding window.public int getNumberOfRequests()
public Duration getDuration()
Copyright 2011-2015 ForgeRock AS.