public class EntryCountCacheMaxSizeChecker extends Object implements CacheMaxSizeChecker
CacheEvictionConfig.CacheMaxSizePolicy.ENTRY_COUNT| Constructor and Description |
|---|
EntryCountCacheMaxSizeChecker(int size,
CacheRecordMap cacheRecordMap,
int partitionCount) |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateMaxPartitionSize(int maxEntryCount,
int partitionCount) |
boolean |
isReachedToMaxSize()
Checks the state of cache about if is reached to max size as its configured
com.hazelcast.config.CacheMaxSizeConfig.CacheMaxSizePolicy |
public EntryCountCacheMaxSizeChecker(int size,
CacheRecordMap cacheRecordMap,
int partitionCount)
public static int calculateMaxPartitionSize(int maxEntryCount,
int partitionCount)
public boolean isReachedToMaxSize()
CacheMaxSizeCheckercom.hazelcast.config.CacheMaxSizeConfig.CacheMaxSizePolicyisReachedToMaxSize in interface CacheMaxSizeCheckertrue if cache is reached to max-size, otherwise falseCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.