Class PurgeObsoleteSandboxDataConfigurationProperties


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

      • PurgeObsoleteSandboxDataConfigurationProperties

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

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object