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 Type
    Method
    Description
    void
    Handle a single audit record.
    void
    onAfterRecords(int totalRecords, int matchingRecords)
    Called when the query is complete and all handleRecord(AuditRecord) calls have been made.
  • Method Details

    • handleRecord

      void handleRecord(AuditRecord record)
      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 all handleRecord(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 by handleRecord(AuditRecord) due to query limit.
      Parameters:
      totalRecords - the total number of records available in the audit log
      matchingRecords - the total number of records that met the query criteria