Package com.axelor.db.audit
Class AuditProcessor
java.lang.Object
com.axelor.db.audit.AuditProcessor
Service responsible for processing AuditLog.
This processor runs asynchronously (triggered by AsyncAuditQueue) and processes logs
in small batches. It employs a "Back-Pressure" mechanism to ensure it does not compete with
active user transactions for database resources.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess()Process all pending audit logs.voidProcess audit logs for a specific transaction ID.protected AuditProcessor.BatchResultprocessBatch(String txId, int offset) static voidsignalActivity(Object value) Signal that entity tracking is happening (called from AuditTracker).
-
Constructor Details
-
AuditProcessor
public AuditProcessor() -
AuditProcessor
-
-
Method Details
-
signalActivity
Signal that entity tracking is happening (called from AuditTracker). This tells the processor to back off as real work is in progress. -
process
public void process()Process all pending audit logs. -
process
Process audit logs for a specific transaction ID. -
processBatch
-