Package dev.shamoo.runtime.core
Record Class LifecycleMetricsSnapshot
java.lang.Object
java.lang.Record
dev.shamoo.runtime.core.LifecycleMetricsSnapshot
public record LifecycleMetricsSnapshot(long operations, long successfulHooks, long failedHooks, long timedOutHooks, long quarantines)
extends Record
Measured lifecycle coordination counters.
-
Constructor Summary
ConstructorsConstructorDescriptionLifecycleMetricsSnapshot(long operations, long successfulHooks, long failedHooks, long timedOutHooks, long quarantines) Creates an instance of aLifecycleMetricsSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedHooksrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theoperationsrecord component.longReturns the value of thequarantinesrecord component.longReturns the value of thesuccessfulHooksrecord component.longReturns the value of thetimedOutHooksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LifecycleMetricsSnapshot
public LifecycleMetricsSnapshot(long operations, long successfulHooks, long failedHooks, long timedOutHooks, long quarantines) Creates an instance of aLifecycleMetricsSnapshotrecord class.- Parameters:
operations- the value for theoperationsrecord componentsuccessfulHooks- the value for thesuccessfulHooksrecord componentfailedHooks- the value for thefailedHooksrecord componenttimedOutHooks- the value for thetimedOutHooksrecord componentquarantines- the value for thequarantinesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
operations
public long operations()Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
successfulHooks
public long successfulHooks()Returns the value of thesuccessfulHooksrecord component.- Returns:
- the value of the
successfulHooksrecord component
-
failedHooks
public long failedHooks()Returns the value of thefailedHooksrecord component.- Returns:
- the value of the
failedHooksrecord component
-
timedOutHooks
public long timedOutHooks()Returns the value of thetimedOutHooksrecord component.- Returns:
- the value of the
timedOutHooksrecord component
-
quarantines
public long quarantines()Returns the value of thequarantinesrecord component.- Returns:
- the value of the
quarantinesrecord component
-