Class DefaultCompositeAuditService
java.lang.Object
com.svenruppert.jsentinel.audit.DefaultCompositeAuditService
- All Implemented Interfaces:
JSentinelAuditService
No-arg
JSentinelAuditService suitable for META-INF/services
registration. Combines a default-sized RingBufferAuditSink (for
query(AuditQuery)) with a LoggingAuditSink that mirrors
every event to java.util.logging at INFO.
Applications that want different retention or additional sinks should
register their own JSentinelAuditService implementation instead
of this default.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(AuditEvent event) Records the given event.query(AuditQuery query) Returns retained events matchingquery, oldest first.Exposed so a Vaadin/audit-route can read the ring buffer directly.
-
Constructor Details
-
DefaultCompositeAuditService
public DefaultCompositeAuditService()
-
-
Method Details
-
publish
Description copied from interface:JSentinelAuditServiceRecords the given event. Never throws.- Specified by:
publishin interfaceJSentinelAuditService- Parameters:
event- non-nulltyped audit event
-
query
Description copied from interface:JSentinelAuditServiceReturns retained events matchingquery, oldest first. Implementations that do not retain events return an empty list.- Specified by:
queryin interfaceJSentinelAuditService- Parameters:
query- filter, nevernull- Returns:
- retained matching events, never
null
-
ringBuffer
Exposed so a Vaadin/audit-route can read the ring buffer directly.
-