Record Class AdapterAuditEvent
java.lang.Object
java.lang.Record
org.j7m.middleware.adapter.spi.AdapterAuditEvent
- Record Components:
timestamp- event timestampadapterId- adapter provider identifieraction- stable action nameresult- stable result namereasonCode- stable reason codesafeMetadata- redacted metadata
public record AdapterAuditEvent(Instant timestamp, AdapterProviderId adapterId, String action, String result, String reasonCode, Map<String,String> safeMetadata)
extends Record
Safe audit event emitted by an adapter or the TCK.
The record is immutable and thread-safe. Events include stable action, result, and reason-code fields so operators can compare adapter behavior across providers. Metadata is redacted and must not contain credentials, payloads, or vendor-specific bearer material.
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterAuditEvent(Instant timestamp, AdapterProviderId adapterId, String action, String result, String reasonCode, Map<String, String> safeMetadata) Creates an adapter audit event. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theadapterIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereasonCoderecord component.result()Returns the value of theresultrecord component.Returns the value of thesafeMetadatarecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdapterAuditEvent
-
-
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). -
timestamp
-
adapterId
-
action
-
result
-
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
safeMetadata
Returns the value of thesafeMetadatarecord component.- Returns:
- the value of the
safeMetadatarecord component
-