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 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 of DefaultAuditPruneService. 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 of DefaultAuditPruneService. The default is 20000.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object