Class PurgeObsoleteSandboxDataConfigurationProperties
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.messaging.autoconfigure.PurgeObsoleteSandboxDataConfigurationProperties
-
@ConstructorBinding @ConfigurationProperties("broadleaf.tracking.sandbox.purge") public final class PurgeObsoleteSandboxDataConfigurationProperties extends ObjectConfiguration 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 booleanequals(Object o)DurationgetObsoleteDataAgeCutoff()This is the duration used to determine whether sandbox data is outdated.inthashCode()booleanisEnabled()StringtoString()
-
-
-
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.
-
-