Package com.aim2be.platform.schema
Class SchemaRegistryProperties
java.lang.Object
com.aim2be.platform.schema.SchemaRegistryProperties
@ConfigurationProperties(prefix="im2be.schema-registry")
public class SchemaRegistryProperties
extends Object
Externalised configuration for the schema-registry client
(ADR-0011 §B + ADR-0014 D-3).
Bound to the im2be.schema-registry.* prefix in
application.properties / application.yml. Defaults are
chosen for a local k3d / Stage B environment; production overrides
(registry URL, group ID, mode) come from each cluster's overlay.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWire-format mode selector. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()getUrl()booleanvoidsetCompatibility(String compatibility) voidsetEnabled(boolean enabled) voidsetGroupId(String groupId) voidvoid
-
Constructor Details
-
SchemaRegistryProperties
public SchemaRegistryProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- whether the autoconfig should activate
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled- whether the autoconfig should activate
-
getUrl
- Returns:
- the registry base URL
-
setUrl
- Parameters:
url- the registry base URL
-
getMode
- Returns:
- the wire-format mode
-
setMode
- Parameters:
mode- the wire-format mode
-
getGroupId
- Returns:
- the Apicurio artifact group ID
-
setGroupId
- Parameters:
groupId- the Apicurio artifact group ID
-
getCompatibility
- Returns:
- the compatibility level applied at registry-rule level
-
setCompatibility
- Parameters:
compatibility- the compatibility level (e.g. BACKWARD, FORWARD, FULL)
-