com.hazelcast.cache.impl.maxsize.impl
public class EntryCountCacheMaxSizeChecker extends Object implements MaxSizeChecker
EvictionConfig.MaxSizePolicy.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 to see if it has reached its maximum configured size
EvictionConfig.MaxSizePolicy |
public EntryCountCacheMaxSizeChecker(int size, CacheRecordMap cacheRecordMap, int partitionCount)
public static int calculateMaxPartitionSize(int maxEntryCount, int partitionCount)
public boolean isReachedToMaxSize()
MaxSizeChecker
EvictionConfig.MaxSizePolicy
isReachedToMaxSize
in interface MaxSizeChecker
true
if maximum size has been reached, false
otherwiseCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.