Record Class AdapterStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.adapter.spi.AdapterStatus
- Record Components:
adapterId- adapter provider identifierlifecycle- lifecycle statecompatibilityLevel- current compatibility levelsafeMetadata- redacted status metadata
public record AdapterStatus(AdapterProviderId adapterId, AdapterLifecycle lifecycle, AdapterCompatibilityLevel compatibilityLevel, Map<String,String> safeMetadata)
extends Record
Safe provider status snapshot.
The record is immutable and thread-safe. It summarizes public adapter state only. Implementations must redact endpoint-like, credential-like, and payload-like fields before constructing this status.
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterStatus(AdapterProviderId adapterId, AdapterLifecycle lifecycle, AdapterCompatibilityLevel compatibilityLevel, Map<String, String> safeMetadata) Creates an adapter status snapshot. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterIdrecord component.Returns the value of thecompatibilityLevelrecord 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 thelifecyclerecord component.Returns the value of thesafeMetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdapterStatus
public AdapterStatus(AdapterProviderId adapterId, AdapterLifecycle lifecycle, AdapterCompatibilityLevel compatibilityLevel, Map<String, String> safeMetadata) Creates an adapter 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). -
adapterId
-
lifecycle
-
compatibilityLevel
Returns the value of thecompatibilityLevelrecord component.- Returns:
- the value of the
compatibilityLevelrecord component
-
safeMetadata
Returns the value of thesafeMetadatarecord component.- Returns:
- the value of the
safeMetadatarecord component
-