Interface AuditHandlerInterface
- All Known Subinterfaces:
DMLAuditHandlerInterface,ProcessedAuditHandlerInterface
public interface AuditHandlerInterface
Base interface for audit handlers that can receive audit events.
Handlers can be registered globally or per-table via QAuditHandlerMetaData.
Implementations should extend either:
-
DMLAuditHandlerInterface for raw DML events with full record snapshots
- ProcessedAuditHandlerInterface for processed audit messages-
Method Summary
Modifier and TypeMethodDescriptiondefault AuditHandlerFailurePolicyPolicy for handling failures in this handler.getName()Unique name for this handler (used for registration and logging).default booleanisAsync()Whether this handler should execute synchronously or asynchronously.
-
Method Details
-
getName
String getName()Unique name for this handler (used for registration and logging). -
isAsync
default boolean isAsync()Whether this handler should execute synchronously or asynchronously. Async handlers run in a thread pool after the transaction commits. Default is false (synchronous). -
getFailurePolicy
Policy for handling failures in this handler. Default is LOG_AND_CONTINUE. Note: FAIL_OPERATION is only supported for synchronous handlers.
-