Record Class WriteBehindCache.WriteFailure<K,V>
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.WriteBehindCache.WriteFailure<K,V>
- Type Parameters:
K- key type | 键类型V- value type | 值类型- Record Components:
failedPuts- the failed put operations | 失败的写入操作failedDeletes- the failed delete keys | 失败的删除键cause- the failure cause | 失败原因attempts- the number of retry attempts | 重试次数
- Enclosing class:
WriteBehindCache<K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.cause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedDeletesrecord component.Returns the value of thefailedPutsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WriteFailure
-
-
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. -
failedPuts
Returns the value of thefailedPutsrecord component.- Returns:
- the value of the
failedPutsrecord component
-
failedDeletes
Returns the value of thefailedDeletesrecord component.- Returns:
- the value of the
failedDeletesrecord component
-
cause
-
attempts
-