Package org.mockserver.mock.drift
Class DriftStore
java.lang.Object
org.mockserver.mock.drift.DriftStore
Thread-safe LRU-capped store of
DriftRecord entries. Oldest entries
are evicted when the store reaches its maximum capacity.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(DriftRecord record) voidclear()getByExpectationId(String expectationId) Returns all records for the given expectation ID, in insertion order.static DriftStoregetRecent(int limit) Returns up tolimitmost-recent records, newest first.intsize()
-
Constructor Details
-
DriftStore
public DriftStore(int maxSize)
-
-
Method Details
-
getInstance
-
add
-
getRecent
Returns up tolimitmost-recent records, newest first. -
getByExpectationId
Returns all records for the given expectation ID, in insertion order. -
clear
public void clear() -
size
public int size()
-