public class EntryCountCacheEvictionChecker extends Object implements EvictionChecker
EvictionConfig.MaxSizePolicy.ENTRY_COUNT
EVICT_ALWAYS
Constructor and Description |
---|
EntryCountCacheEvictionChecker(int size,
CacheRecordMap cacheRecordMap,
int partitionCount) |
Modifier and Type | Method and Description |
---|---|
static int |
calculateMaxPartitionSize(int maxEntryCount,
int partitionCount) |
boolean |
isEvictionRequired()
Checks the state to see if it has reached its maximum configured size
EvictionConfig.MaxSizePolicy |
public EntryCountCacheEvictionChecker(int size, CacheRecordMap cacheRecordMap, int partitionCount)
public static int calculateMaxPartitionSize(int maxEntryCount, int partitionCount)
public boolean isEvictionRequired()
EvictionChecker
EvictionConfig.MaxSizePolicy
isEvictionRequired
in interface EvictionChecker
true
if maximum size has been reached, false
otherwiseCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.