Class AuditIngestionProperties

java.lang.Object
com.broadleafcommerce.audit.env.AuditIngestionProperties

@ConfigurationProperties(prefix="broadleaf.audit.ingestion") public class AuditIngestionProperties extends Object
Configuration controlling the behavior of ingestion Batch instances into the AuditServices bounded context.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    int
    The size of the JDBC batch insert to perform for JpaAuditHeader records.
    long
    If no completion files are available, duration of wait time in milliseconds before a new poll for completion files is made.
    long
    Maximum amount of time (in milliseconds) that the system will wait to acquire a processor thread before giving up.
    int
    The number of concurrent threads processing audit ingestion on a given replica of AuditServices.
    int
     
    boolean
    Whether ingestion should begin automatically during application startup.
    void
    setAuditRecordBatchSize(int auditRecordBatchSize)
    The size of the JDBC batch insert to perform for JpaAuditHeader records.
    void
    setAutoStartup(boolean autoStartup)
    Whether ingestion should begin automatically during application startup.
    void
    setCompletionFilePollInterval(long completionFilePollInterval)
    If no completion files are available, duration of wait time in milliseconds before a new poll for completion files is made.
    void
    setProcessorAcquireTimeout(long processorAcquireTimeout)
    Maximum amount of time (in milliseconds) that the system will wait to acquire a processor thread before giving up.
    void
    setProcessorCount(int processorCount)
    The number of concurrent threads processing audit ingestion on a given replica of AuditServices.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AuditIngestionProperties

      public AuditIngestionProperties()
  • Method Details

    • isAutoStartup

      public boolean isAutoStartup()
      Whether ingestion should begin automatically during application startup. Default is true.
    • getCompletionFilePollInterval

      public long getCompletionFilePollInterval()
      If no completion files are available, duration of wait time in milliseconds before a new poll for completion files is made. Default is 5000.
    • getAuditRecordBatchSize

      public int getAuditRecordBatchSize()
      The size of the JDBC batch insert to perform for JpaAuditHeader records. Note, related JpaAuditDetail records are also inserted in batch and the number of detail records will be an unknown quantity higher than the header count. Caution should be used when setting this property higher, as the number of details will expand to a greater degree. Default is 100.
    • getProcessorCount

      public int getProcessorCount()
      The number of concurrent threads processing audit ingestion on a given replica of AuditServices. The default is 5.
    • getProcessorAcquireTimeout

      public long getProcessorAcquireTimeout()
      Maximum amount of time (in milliseconds) that the system will wait to acquire a processor thread before giving up. The default is 1000 ms (1 second).
    • setAutoStartup

      public void setAutoStartup(boolean autoStartup)
      Whether ingestion should begin automatically during application startup. Default is true.
    • setCompletionFilePollInterval

      public void setCompletionFilePollInterval(long completionFilePollInterval)
      If no completion files are available, duration of wait time in milliseconds before a new poll for completion files is made. Default is 5000.
    • setAuditRecordBatchSize

      public void setAuditRecordBatchSize(int auditRecordBatchSize)
      The size of the JDBC batch insert to perform for JpaAuditHeader records. Note, related JpaAuditDetail records are also inserted in batch and the number of detail records will be an unknown quantity higher than the header count. Caution should be used when setting this property higher, as the number of details will expand to a greater degree. Default is 100.
    • setProcessorCount

      public void setProcessorCount(int processorCount)
      The number of concurrent threads processing audit ingestion on a given replica of AuditServices. The default is 5.
    • setProcessorAcquireTimeout

      public void setProcessorAcquireTimeout(long processorAcquireTimeout)
      Maximum amount of time (in milliseconds) that the system will wait to acquire a processor thread before giving up. The default is 1000 ms (1 second).
    • 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