Class PurgeObsoleteSandboxDataConfigurationProperties
java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.autoconfigure.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 Summary
ConstructorDescriptionPurgeObsoleteSandboxDataConfigurationProperties
(Duration obsoleteDataAgeCutoff) -
Method Summary
-
Constructor Details
-
PurgeObsoleteSandboxDataConfigurationProperties
public PurgeObsoleteSandboxDataConfigurationProperties(@DefaultValue("60d") Duration obsoleteDataAgeCutoff)
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
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
-
hashCode
public int hashCode() -
toString
-