public class EntryCountCacheEvictionChecker extends Object implements EvictionChecker
EvictionConfig.MaxSizePolicy.ENTRY_COUNTEVICT_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()
EvictionCheckerEvictionConfig.MaxSizePolicyisEvictionRequired in interface EvictionCheckertrue if maximum size has been reached, false otherwiseCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.