Class DedupProperties

java.lang.Object
com.aim2be.platform.dedup.DedupProperties

@ConfigurationProperties(prefix="im2be.dedup") @Validated public class DedupProperties extends Object
Type-safe configuration for the processed-kafka-events dedup module.

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 Details

    • DedupProperties

      public DedupProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getDefaultScopeId

      public String getDefaultScopeId()
    • setDefaultScopeId

      public void setDefaultScopeId(String defaultScopeId)