public class EntryCountNearCacheEvictionChecker extends Object implements EvictionChecker
EvictionConfig.MaxSizePolicy.ENTRY_COUNT.
Checks if the Near Cache size is reached to max-size or not.
EvictionCheckerEVICT_ALWAYS| Constructor and Description |
|---|
EntryCountNearCacheEvictionChecker(int size,
SampleableNearCacheRecordMap nearCacheRecordMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEvictionRequired()
Checks the state to see if it has reached its maximum configured size
EvictionConfig.MaxSizePolicy |
public EntryCountNearCacheEvictionChecker(int size,
SampleableNearCacheRecordMap nearCacheRecordMap)
public boolean isEvictionRequired()
EvictionCheckerEvictionConfig.MaxSizePolicyisEvictionRequired in interface EvictionCheckertrue if maximum size has been reached, false otherwiseCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.