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()
CacheMaxSizeChecker
com.hazelcast.config.CacheMaxSizeConfig.CacheMaxSizePolicy
isReachedToMaxSize
in interface CacheMaxSizeChecker
true
if cache is reached to max-size, otherwise false
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.