Interface AuditSink

All Known Implementing Classes:
LoggingAuditSink, RingBufferAuditSink
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AuditSink
Write-only destination for AuditEvents.

Sinks are the side-effecting end of the audit pipeline — they log to stderr, append to disk, ship to a SIEM, or buffer in memory. The read-side (query(AuditQuery)) belongs on JSentinelAuditService, not here.

Implementations must not throw from accept(AuditEvent). A failing sink must catch its own exceptions and degrade silently, so the security flow that emitted the event is never interrupted by a downstream audit problem.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Records the given event.
  • Method Details

    • accept

      void accept(AuditEvent event)
      Records the given event.
      Parameters:
      event - non-null event