Package one.microstream.cache.types
Class EvictionPolicy.Sampling
java.lang.Object
one.microstream.cache.types.EvictionPolicy.Sampling
- All Implemented Interfaces:
EvictionPolicy
- Enclosing interface:
- EvictionPolicy
public static class EvictionPolicy.Sampling extends Object implements EvictionPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.cache.types.EvictionPolicy
EvictionPolicy.Sampling, EvictionPolicy.Searching
-
Method Summary
Modifier and Type Method Description Iterable<KeyValue<Object,CachedValue>>
pickEntriesToEvict(CacheTable cacheTable)
Select the entries which should be evicted.
-
Method Details
-
pickEntriesToEvict
Description copied from interface:EvictionPolicy
Select the entries which should be evicted.- Specified by:
pickEntriesToEvict
in interfaceEvictionPolicy
- Parameters:
cacheTable
- the source cache table to check- Returns:
- all entries which should be evicted
-