Record Class CrdbStats
java.lang.Object
java.lang.Record
com.cockroachlabs.crdb.observe.CrdbStats
- Record Components:
retryAttempts- total retryable anomalies retriedretriesExhausted- total operations that exhausted their retriescircuitOpens- total circuit-breaker OPEN transitions
public record CrdbStats(long retryAttempts, long retriesExhausted, long circuitOpens)
extends Record
A snapshot of process-wide operational counters.
-
Constructor Summary
ConstructorsConstructorDescriptionCrdbStats(long retryAttempts, long retriesExhausted, long circuitOpens) Creates an instance of aCrdbStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecircuitOpensrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theretriesExhaustedrecord component.longReturns the value of theretryAttemptsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CrdbStats
public CrdbStats(long retryAttempts, long retriesExhausted, long circuitOpens) Creates an instance of aCrdbStatsrecord class.- Parameters:
retryAttempts- the value for theretryAttemptsrecord componentretriesExhausted- the value for theretriesExhaustedrecord componentcircuitOpens- the value for thecircuitOpensrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
retryAttempts
public long retryAttempts()Returns the value of theretryAttemptsrecord component.- Returns:
- the value of the
retryAttemptsrecord component
-
retriesExhausted
public long retriesExhausted()Returns the value of theretriesExhaustedrecord component.- Returns:
- the value of the
retriesExhaustedrecord component
-
circuitOpens
public long circuitOpens()Returns the value of thecircuitOpensrecord component.- Returns:
- the value of the
circuitOpensrecord component
-