Record Class EndpointMetricCached
java.lang.Object
java.lang.Record
org.easypeelsecurity.springdog.manager.statistics.EndpointMetricCached
- Record Components:
methodSignature- methodSignatureresponseTimes- response timesratelimitFailureCount- failure count of the endpoint by ratelimit
public record EndpointMetricCached(String methodSignature, long[] responseTimes, int ratelimitFailureCount)
extends Record
EndpointMetricCached.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointMetricCached(String methodSignature, long[] responseTimes, int ratelimitFailureCount) Creates an instance of aEndpointMetricCachedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of themethodSignaturerecord component.intReturns the value of theratelimitFailureCountrecord component.long[]Returns the value of theresponseTimesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EndpointMetricCached
public EndpointMetricCached(String methodSignature, long[] responseTimes, int ratelimitFailureCount) Creates an instance of aEndpointMetricCachedrecord class.- Parameters:
methodSignature- the value for themethodSignaturerecord componentresponseTimes- the value for theresponseTimesrecord componentratelimitFailureCount- the value for theratelimitFailureCountrecord component
-
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
methodSignature
Returns the value of themethodSignaturerecord component.- Returns:
- the value of the
methodSignaturerecord component
-
responseTimes
public long[] responseTimes()Returns the value of theresponseTimesrecord component.- Returns:
- the value of the
responseTimesrecord component
-
ratelimitFailureCount
public int ratelimitFailureCount()Returns the value of theratelimitFailureCountrecord component.- Returns:
- the value of the
ratelimitFailureCountrecord component
-