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 ofPurgeObsoleteSandboxDataHandler
.- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description PurgeObsoleteSandboxDataConfigurationProperties(Duration obsoleteDataAgeCutoff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Duration
getObsoleteDataAgeCutoff()
This is the duration used to determine whether sandbox data is outdated.int
hashCode()
boolean
isEnabled()
String
toString()
-
-
-
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.
-
-