Record Class CompatibilityVersions

java.lang.Object
java.lang.Record
org.elasticsearch.cluster.version.CompatibilityVersions
Record Components:
transportVersion - A transport version, usually a minimum compatible one for a node.
systemIndexMappingsVersion - A map of system index names to versions for their mappings.
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

public record CompatibilityVersions(TransportVersion transportVersion, Map<String,SystemIndexDescriptor.MappingsVersion> systemIndexMappingsVersion) extends Record implements Writeable, ToXContentFragment
Wraps component version numbers for cluster state

Cluster state will need to carry version information for different independently versioned components. This wrapper lets us wrap these versions one level below ClusterState. It's similar to VersionInformation, but this class is meant to be constructed during node startup and hold values from plugins as well.