Class AuditWriteEvent

java.lang.Object
jdk.jfr.Event
zeroecho.pki.server.jfr.AuditWriteEvent

public final class AuditWriteEvent extends Event
JFR event emitted when an audit record is written to the durable audit sink.

Measures the latency of the audit write path, distinguishes the audit category, and records whether the write included an fsync. Useful for identifying audit-path bottlenecks under load.

Since:
1.0
  • Field Details

    • category

      public String category
      Audit category of the record, e.g. SERVER_SECURITY.
    • recordCount

      public int recordCount
      Number of records written in this batch (always 1 for the server-control sink).
    • fsync

      public boolean fsync
      Whether the write included an explicit filesystem sync; false for best-effort writes.
  • Constructor Details

    • AuditWriteEvent

      public AuditWriteEvent()
      Creates an uncommitted event with default field values; populate fields before committing.