Record Class ClientStatisticsRegistry.RecordedClientStatistics
java.lang.Object
java.lang.Record
com.loomcache.server.management.ClientStatisticsRegistry.RecordedClientStatistics
- Enclosing class:
ClientStatisticsRegistry
public static record ClientStatisticsRegistry.RecordedClientStatistics(@NonNull ClientStatisticsPayload payload, long receivedAtEpochMillis)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecordedClientStatistics(@NonNull ClientStatisticsPayload payload, long receivedAtEpochMillis) Creates an instance of aRecordedClientStatisticsrecord 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.@NonNull ClientStatisticsPayloadpayload()Returns the value of thepayloadrecord component.longReturns the value of thereceivedAtEpochMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecordedClientStatistics
public RecordedClientStatistics(@NonNull ClientStatisticsPayload payload, long receivedAtEpochMillis) Creates an instance of aRecordedClientStatisticsrecord class.- Parameters:
payload- the value for thepayloadrecord componentreceivedAtEpochMillis- the value for thereceivedAtEpochMillisrecord 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. -
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
receivedAtEpochMillis
public long receivedAtEpochMillis()Returns the value of thereceivedAtEpochMillisrecord component.- Returns:
- the value of the
receivedAtEpochMillisrecord component
-