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 boolean
boolean
long
Maximum interval between polling attempts for audit pruning.long
The maximum number of records to attempt to delete during a single iteration ofDefaultAuditPruneService
.long
Minimum interval between polling attempts for audit pruning.long
The retention period (in milliseconds) for audit records in hot storage.int
hashCode()
void
setMaxPollInterval
(long maxPollInterval) Maximum interval between polling attempts for audit pruning.void
setMaxPruneAttemptSize
(long maxPruneAttemptSize) The maximum number of records to attempt to delete during a single iteration ofDefaultAuditPruneService
.void
setMinPollInterval
(long minPollInterval) Minimum interval between polling attempts for audit pruning.void
setRetentionPeriod
(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
-