Class ThrottlingRate
java.lang.Object
org.forgerock.openig.filter.throttling.ThrottlingRate
A value object to represent a throttling rate.
-
Constructor Summary
ConstructorsConstructorDescriptionThrottlingRate
(int numberOfRequests, String duration) Constructs a newThrottlingRate
. -
Method Summary
-
Constructor Details
-
ThrottlingRate
Constructs a newThrottlingRate
.- Parameters:
numberOfRequests
- the maximum of requests that can be filtered out during the duration.duration
- the string representing the duration of the sliding window.
-
-
Method Details
-
getNumberOfRequests
public int getNumberOfRequests()Returns the maximum of requests that can be filtered out during the duration.- Returns:
- the maximum of requests that can be filtered out during the duration
-
getDuration
Returns the duration of the sliding window.- Returns:
- the duration of the sliding window
-
equals
-
hashCode
public int hashCode() -
toString
-