Record Class SagaStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.SagaStatus
- Record Components:
metrics- service metrics snapshotexecutions- safe per-execution summariesdeadLetters- bounded safe dead-letter summariesevidence- bounded safe evidence recordsrecoveryReport- latest recovery reportlastError- redacted latest error text
- All Implemented Interfaces:
Serializable
public record SagaStatus(SagaMetricsSnapshot metrics, List<SagaExecution> executions, List<SagaDeadLetterRecord> deadLetters, List<SagaEvidence> evidence, SagaRecoveryReport recoveryReport, String lastError)
extends Record
implements Serializable
Safe saga service status.
Status is immutable and redacted. It exposes operational summaries, bounded dead-letter/evidence views, and the latest safe recovery report.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaStatus(SagaMetricsSnapshot metrics, List<SagaExecution> executions, List<SagaDeadLetterRecord> deadLetters, List<SagaEvidence> evidence, SagaRecoveryReport recoveryReport, String lastError) Creates an immutable status snapshot. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeadLettersrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.Returns the value of theexecutionsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastErrorrecord component.metrics()Returns the value of themetricsrecord component.Returns the value of therecoveryReportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SagaStatus
public SagaStatus(SagaMetricsSnapshot metrics, List<SagaExecution> executions, List<SagaDeadLetterRecord> deadLetters, List<SagaEvidence> evidence, SagaRecoveryReport recoveryReport, String lastError) Creates an immutable status 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 withObjects::equals(Object,Object). -
metrics
-
executions
Returns the value of theexecutionsrecord component.- Returns:
- the value of the
executionsrecord component
-
deadLetters
Returns the value of thedeadLettersrecord component.- Returns:
- the value of the
deadLettersrecord component
-
evidence
-
recoveryReport
Returns the value of therecoveryReportrecord component.- Returns:
- the value of the
recoveryReportrecord component
-
lastError
-