public class EntryCountNearCacheEvictionChecker extends Object implements EvictionChecker
EvictionConfig.MaxSizePolicy.ENTRY_COUNT
.
Checks if the Near Cache size is reached to max-size or not.
EvictionChecker
EVICT_ALWAYS
Constructor and Description |
---|
EntryCountNearCacheEvictionChecker(int size,
SampleableNearCacheRecordMap nearCacheRecordMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEvictionRequired()
Checks the state to see if it has reached its maximum configured size
EvictionConfig.MaxSizePolicy |
public EntryCountNearCacheEvictionChecker(int size, SampleableNearCacheRecordMap nearCacheRecordMap)
public boolean isEvictionRequired()
EvictionChecker
EvictionConfig.MaxSizePolicy
isEvictionRequired
in interface EvictionChecker
true
if maximum size has been reached, false
otherwiseCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.