Record Class RetryExhausted
java.lang.Object
java.lang.Record
com.cockroachlabs.crdb.anomaly.RetryExhausted
- Record Components:
attempts- how many attempts were made before giving uplast- the anomaly observed on the final attempt
- All Implemented Interfaces:
CrdbAnomaly
Signals that the retry engine gave up after exhausting all attempts.
-
Constructor Summary
ConstructorsConstructorDescriptionRetryExhausted(int attempts, CrdbAnomaly last) Creates an instance of aRetryExhaustedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.last()Returns the value of thelastrecord component.message()A human-readable description of the anomaly.sqlState()The SQLSTATE associated with this anomaly, ornullif not applicable.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
sqlState
Description copied from interface:CrdbAnomalyThe SQLSTATE associated with this anomaly, ornullif not applicable.- Specified by:
sqlStatein interfaceCrdbAnomaly
-
message
Description copied from interface:CrdbAnomalyA human-readable description of the anomaly.- Specified by:
messagein interfaceCrdbAnomaly
-
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. -
attempts
-
last
-