Record Class DashboardProperties.Retention
java.lang.Object
java.lang.Record
com.societegenerale.failover.dashboard.config.DashboardProperties.Retention
- Record Components:
maxAge- drop series points older than this (e.g.7d; configurable 5–10 days)maxEntries- hard cap on retained points; oldest truncated first (default100000)
- Enclosing class:
DashboardProperties
Bounded retention for the cluster trend history (design §5.4): the series ring keeps points no older than
maxAge and no more than maxEntries, truncating the oldest first. Caps heap; this is bounded
trend history, not a TSDB.-
Constructor Summary
Constructors -
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.maxAge()Returns the value of themaxAgerecord component.intReturns the value of themaxEntriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Retention
public Retention()Convenience with defaults. -
Retention
Creates an instance of aRetentionrecord class.- Parameters:
maxAge- the value for themaxAgerecord componentmaxEntries- the value for themaxEntriesrecord component
-
-
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 '=='. -
maxAge
Returns the value of themaxAgerecord component.- Returns:
- the value of the
maxAgerecord component
-
maxEntries
public int maxEntries()Returns the value of themaxEntriesrecord component.- Returns:
- the value of the
maxEntriesrecord component
-