Class PurgeObsoleteSandboxDataConfigurationProperties

java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.autoconfigure.PurgeObsoleteSandboxDataConfigurationProperties

@ConfigurationProperties("broadleaf.tracking.sandbox.purge") public final class PurgeObsoleteSandboxDataConfigurationProperties extends Object
Configuration properties for the behavior of PurgeObsoleteSandboxDataHandler.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • PurgeObsoleteSandboxDataConfigurationProperties

      public PurgeObsoleteSandboxDataConfigurationProperties(@DefaultValue("60d") Duration obsoleteDataAgeCutoff)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • getObsoleteDataAgeCutoff

      public Duration getObsoleteDataAgeCutoff()
      This is the duration used to determine whether sandbox data is outdated. The current time (the time that the scheduled job is handled) minus this duration is the age cutoff that will be used. All sandbox-archived records that have ChangeDetails whose timestamps are all older than this cutoff will be deleted. For the remaining records, obsolete ChangeDetails whose timestamps are older than this cutoff will be pruned.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object