Record Class ClientStatisticsConfig
java.lang.Object
java.lang.Record
com.loomcache.client.ClientStatisticsConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientStatisticsConfig(boolean enabled, Duration uploadInterval) Creates an instance of aClientStatisticsConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientStatisticsConfigdisabled()booleanenabled()Returns the value of theenabledrecord component.static ClientStatisticsConfigfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.Returns the value of theuploadIntervalrecord component.withEnabled(boolean enabled) withUploadInterval(Duration uploadInterval)
-
Field Details
-
DEFAULT_UPLOAD_INTERVAL
-
MIN_UPLOAD_INTERVAL
-
-
Constructor Details
-
ClientStatisticsConfig
Creates an instance of aClientStatisticsConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentuploadInterval- the value for theuploadIntervalrecord component
-
-
Method Details
-
disabled
-
enabledConfig
-
isEnabled
public boolean isEnabled() -
withEnabled
-
withUploadInterval
-
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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
uploadInterval
Returns the value of theuploadIntervalrecord component.- Returns:
- the value of the
uploadIntervalrecord component
-