com.hazelcast.map.impl.eviction
Class MaxSizeChecker
java.lang.Object
com.hazelcast.map.impl.eviction.MaxSizeChecker
public class MaxSizeChecker
- extends Object
Checks whether a specific threshold is exceeded or not
according to configured MaxSizeConfig.MaxSizePolicy
to start eviction process.
- See Also:
EvictionOperator.maxSizeChecker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxSizeChecker
public MaxSizeChecker(MapServiceContext mapServiceContext)
MaxSizeChecker
public MaxSizeChecker(MemoryInfoAccessor memoryInfoAccessor,
MapServiceContext mapServiceContext)
checkEvictable
public boolean checkEvictable(MapContainer mapContainer,
int partitionId)
getApproximateMaxSize
public static int getApproximateMaxSize(int maxSizeFromConfig)
- used when deciding evictable or not.
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.