Package org.mockserver.mock.audit
Class AuditStore
java.lang.Object
org.mockserver.mock.audit.AuditStore
Thread-safe, append-only, bounded ring buffer of
AuditEntry records
for control-plane mutations. Oldest entries are evicted once the store reaches
its maximum capacity.
The singleton's capacity is fixed at construction (read once from
controlPlaneAuditMaxEntries), mirroring DriftStore. A
package-visible constructor exists for unit tests that need an isolated,
small-capacity instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AuditEntry entry) voidclear()static AuditStoregetRecent(int limit) Returns up tolimitmost-recent entries, newest first.intsize()
-
Method Details
-
getInstance
-
add
-
getRecent
Returns up tolimitmost-recent entries, newest first. -
clear
public void clear() -
size
public int size()
-