Package com.broadleafcommerce.audit.env
Class AuditPruneProperties
java.lang.Object
com.broadleafcommerce.audit.env.AuditPruneProperties
@ConfigurationProperties(prefix="broadleaf.audit.prune")
public class AuditPruneProperties
extends Object
Configuration controlling the behavior for pruning of
AuditHeader and
AuditDetail.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanlongMaximum interval between polling attempts for audit pruning.longThe maximum number of records to attempt to delete during a single iteration ofDefaultAuditPruneService.longMinimum interval between polling attempts for audit pruning.longThe retention period (in milliseconds) for audit records in hot storage.inthashCode()voidsetMaxPollInterval(long maxPollInterval) Maximum interval between polling attempts for audit pruning.voidsetMaxPruneAttemptSize(long maxPruneAttemptSize) The maximum number of records to attempt to delete during a single iteration ofDefaultAuditPruneService.voidsetMinPollInterval(long minPollInterval) Minimum interval between polling attempts for audit pruning.voidsetRetentionPeriod(long retentionPeriod) The retention period (in milliseconds) for audit records in hot storage.toString()
-
Constructor Details
-
AuditPruneProperties
public AuditPruneProperties()
-
-
Method Details
-
getRetentionPeriod
public long getRetentionPeriod()The retention period (in milliseconds) for audit records in hot storage. The default is 90 days. -
getMaxPollInterval
public long getMaxPollInterval()Maximum interval between polling attempts for audit pruning. The default is 2 hours. -
getMinPollInterval
public long getMinPollInterval()Minimum interval between polling attempts for audit pruning. The default is 1 hour. -
getMaxPruneAttemptSize
public long getMaxPruneAttemptSize()The maximum number of records to attempt to delete during a single iteration ofDefaultAuditPruneService. The default is 20000. -
setRetentionPeriod
public void setRetentionPeriod(long retentionPeriod) The retention period (in milliseconds) for audit records in hot storage. The default is 90 days. -
setMaxPollInterval
public void setMaxPollInterval(long maxPollInterval) Maximum interval between polling attempts for audit pruning. The default is 2 hours. -
setMinPollInterval
public void setMinPollInterval(long minPollInterval) Minimum interval between polling attempts for audit pruning. The default is 1 hour. -
setMaxPruneAttemptSize
public void setMaxPruneAttemptSize(long maxPruneAttemptSize) The maximum number of records to attempt to delete during a single iteration ofDefaultAuditPruneService. The default is 20000. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-