Class NoopJSentinelAuditService
java.lang.Object
com.svenruppert.jsentinel.audit.NoopJSentinelAuditService
- All Implemented Interfaces:
JSentinelAuditService
Default
JSentinelAuditService — discards every event and never
retains anything. Used when no SPI is registered and no application-level
audit sink is configured.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(AuditEvent event) Records the given event.query(AuditQuery query) Returns retained events matchingquery, oldest first.
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Constructor Details
-
NoopJSentinelAuditService
public NoopJSentinelAuditService()Public forServiceLoaderdiscovery. PreferINSTANCE.
-
-
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
-