Package com.broadleafcommerce.audit.env
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
hashCode()
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.toString()
-
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-