Class DedupProperties
Bound from the im2be.dedup.* property prefix in the consuming
service's application.properties / application.yaml.
Example:
im2be.dedup.enabled=true im2be.dedup.default-scope-id=family-service
defaultScopeId is read by DedupGuard when callers use
the no-scope overload DedupGuard.tryClaim(String, Instant, String, int, long).
It is OPTIONAL — services that always pass the scope explicitly (per-pod
broadcast dedup per ADR-0014 §L-12, where the scope is "<service>-pod-<n>")
may leave it unset. When unset, calling the no-scope overload throws
IllegalStateException at runtime.
@Validated is on this class (not on DedupAutoConfiguration)
so the jakarta validation constraints — should any be added in the future —
fire at binding time. Today the only field with no constraints is
defaultScopeId; the annotation is forward-looking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDefaultScopeId(String defaultScopeId) voidsetEnabled(boolean enabled)
-
Constructor Details
-
DedupProperties
public DedupProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getDefaultScopeId
-
setDefaultScopeId
-