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) |
org.forgerock.util.time.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 org.forgerock.util.time.Duration getDuration()
Copyright © 2025 Open Identity Platform Community. All rights reserved.