Interface AuditProfile.QueryStreamHandler
- Enclosing interface:
- AuditProfile
public static interface AuditProfile.QueryStreamHandler
Handler interface for stream processing audit records as they are returned.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRecord(AuditRecord record) Handle a single audit record.voidonAfterRecords(int totalRecords, int matchingRecords) Called when the query is complete and allhandleRecord(AuditRecord)calls have been made.
-
Method Details
-
handleRecord
Handle a single audit record. Records are passed one at a time.- Parameters:
record- the audit record
-
onAfterRecords
void onAfterRecords(int totalRecords, int matchingRecords) Called when the query is complete and allhandleRecord(AuditRecord)calls have been made. Receives both the total number of records available and the total number of records that met the query criteria. Both numbers may be different from the number of records processed byhandleRecord(AuditRecord)due to query limit.- Parameters:
totalRecords- the total number of records available in the audit logmatchingRecords- the total number of records that met the query criteria
-