Record Class TransactionParticipant
java.lang.Object
java.lang.Record
org.j7m.middleware.api.saga.TransactionParticipant
- Record Components:
participantId- safe participant or principal identifiermetadata- redacted participant metadata
- All Implemented Interfaces:
Serializable
public record TransactionParticipant(String participantId, Map<String,String> metadata)
extends Record
implements Serializable
Safe participant identity carried in saga evidence.
Metadata is defensively copied and redacted by key. Credential-like values must not be exposed through status, evidence, or exception text.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionParticipant(String participantId, Map<String, String> metadata) Creates a validated immutable participant. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of theparticipantIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransactionParticipant
-
-
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). -
participantId
Returns the value of theparticipantIdrecord component.- Returns:
- the value of the
participantIdrecord component
-
metadata
-