Record Class ThrottlerAttempts
java.lang.Object
java.lang.Record
org.apache.syncope.core.spring.security.throttle.ThrottlerAttempts
- All Implemented Interfaces:
Serializable
public record ThrottlerAttempts(Deque<Long> failures, long blockedUntil)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThrottlerAttempts(Deque<Long> failures, long blockedUntil) Creates an instance of aThrottlerAttemptsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theblockedUntilrecord component.final booleanIndicates whether some other object is "equal to" this one.failures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThrottlerAttempts
Creates an instance of aThrottlerAttemptsrecord class.- Parameters:
failures- the value for thefailuresrecord componentblockedUntil- the value for theblockedUntilrecord component
-
ThrottlerAttempts
public ThrottlerAttempts()
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
failures
Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-
blockedUntil
public long blockedUntil()Returns the value of theblockedUntilrecord component.- Returns:
- the value of the
blockedUntilrecord component
-