Record Class TtlDecayPolicy.Step
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.ttl.TtlDecayPolicy.Step
- Record Components:
threshold- access count threshold | 访问计数阈值ttl- TTL at this step | 此步骤的 TTL
- Enclosing interface:
TtlDecayPolicy
Step definition for step decay
阶梯衰减的步骤定义
- Since:
- JDK 25, opencode-base-cache V2.0.5
- Author:
- Leon Soo www.LeonSoo.com
-
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.static TtlDecayPolicy.StepCreate a step 创建步骤longReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.ttl()Returns the value of thettlrecord component.
-
Constructor Details
-
Step
public Step
-
-
Method Details
-
of
Create a step 创建步骤- Parameters:
threshold- access threshold | 访问阈值ttl- TTL at this step | 此步骤的 TTL- Returns:
- step | 步骤
-
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. -
threshold
-
ttl
-