Record Class BulkOperations.TtlValue<V>
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.bulk.BulkOperations.TtlValue<V>
- Type Parameters:
V- value type | 值类型- Record Components:
value- the value | 值ttl- time to live | 存活时间
- Enclosing class:
BulkOperations<K,V>
Value with TTL for bulk put
用于批量放置的带 TTL 的值
- 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 <V> BulkOperations.TtlValue<V> Creates a TtlValue | 创建 TtlValuefinal StringtoString()Returns a string representation of this record class.ttl()Returns the value of thettlrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
TtlValue
-
-
Method Details
-
of
Creates a TtlValue | 创建 TtlValue- Type Parameters:
V- value type | 值类型- Parameters:
value- the value | 值ttl- the time-to-live | 存活时间- Returns:
- the TtlValue | TtlValue 实例
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
-
ttl
-