Record Class SagaMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.SagaMetricsSnapshot
- Record Components:
activeSagas- currently active executionscompletedSagas- completed terminal executionsfailedSagas- failed terminal executionscancelledSagas- cancelled terminal executionstimedOutSagas- timed-out terminal executionsrunningSteps- currently running stepscompensations- compensation attempts recordedretries- retry attempts recordeddeadLetters- durable dead-letter records createdoutboxPending- pending durable outbox commandsrecoveries- recovery runs completedrejectedOperations- rejected operations such as backpressure violations
- All Implemented Interfaces:
Serializable
public record SagaMetricsSnapshot(long activeSagas, long completedSagas, long failedSagas, long cancelledSagas, long timedOutSagas, long runningSteps, long compensations, long retries, long deadLetters, long outboxPending, long recoveries, long rejectedOperations)
extends Record
implements Serializable
Safe saga metrics snapshot.
Metrics are point-in-time counters maintained by the saga service. They are safe for status output and contain no command payloads.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaMetricsSnapshot(long activeSagas, long completedSagas, long failedSagas, long cancelledSagas, long timedOutSagas, long runningSteps, long compensations, long retries, long deadLetters, long outboxPending, long recoveries, long rejectedOperations) Creates a validated metrics snapshot. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theactiveSagasrecord component.longReturns the value of thecancelledSagasrecord component.longReturns the value of thecompensationsrecord component.longReturns the value of thecompletedSagasrecord component.longReturns the value of thedeadLettersrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedSagasrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theoutboxPendingrecord component.longReturns the value of therecoveriesrecord component.longReturns the value of therejectedOperationsrecord component.longretries()Returns the value of theretriesrecord component.longReturns the value of therunningStepsrecord component.longReturns the value of thetimedOutSagasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SagaMetricsSnapshot
public SagaMetricsSnapshot(long activeSagas, long completedSagas, long failedSagas, long cancelledSagas, long timedOutSagas, long runningSteps, long compensations, long retries, long deadLetters, long outboxPending, long recoveries, long rejectedOperations) Creates a validated metrics snapshot.
-
-
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. -
activeSagas
public long activeSagas()Returns the value of theactiveSagasrecord component.- Returns:
- the value of the
activeSagasrecord component
-
completedSagas
public long completedSagas()Returns the value of thecompletedSagasrecord component.- Returns:
- the value of the
completedSagasrecord component
-
failedSagas
public long failedSagas()Returns the value of thefailedSagasrecord component.- Returns:
- the value of the
failedSagasrecord component
-
cancelledSagas
public long cancelledSagas()Returns the value of thecancelledSagasrecord component.- Returns:
- the value of the
cancelledSagasrecord component
-
timedOutSagas
public long timedOutSagas()Returns the value of thetimedOutSagasrecord component.- Returns:
- the value of the
timedOutSagasrecord component
-
runningSteps
public long runningSteps()Returns the value of therunningStepsrecord component.- Returns:
- the value of the
runningStepsrecord component
-
compensations
public long compensations()Returns the value of thecompensationsrecord component.- Returns:
- the value of the
compensationsrecord component
-
retries
-
deadLetters
public long deadLetters()Returns the value of thedeadLettersrecord component.- Returns:
- the value of the
deadLettersrecord component
-
outboxPending
public long outboxPending()Returns the value of theoutboxPendingrecord component.- Returns:
- the value of the
outboxPendingrecord component
-
recoveries
public long recoveries()Returns the value of therecoveriesrecord component.- Returns:
- the value of the
recoveriesrecord component
-
rejectedOperations
public long rejectedOperations()Returns the value of therejectedOperationsrecord component.- Returns:
- the value of the
rejectedOperationsrecord component
-