Record Class AccessPatternAnalyzer.AccessRecord
java.lang.Object
java.lang.Record
com.loomcache.server.metrics.AccessPatternAnalyzer.AccessRecord
- Enclosing class:
AccessPatternAnalyzer
-
Constructor Summary
ConstructorsConstructorDescriptionAccessRecord(String key, long timestamp, long latencyNs) Creates an instance of aAccessRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.longReturns the value of thelatencyNsrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccessRecord
Creates an instance of aAccessRecordrecord class.- Parameters:
key- the value for thekeyrecord componenttimestamp- the value for thetimestamprecord componentlatencyNs- the value for thelatencyNsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
latencyNs
public long latencyNs()Returns the value of thelatencyNsrecord component.- Returns:
- the value of the
latencyNsrecord component
-