| Modifier and Type | Field and Description |
|---|---|
protected EvictionChecker |
evictionChecker |
protected MapEvictionPolicy |
mapEvictionPolicy |
protected IPartitionService |
partitionService |
DEFAULT_SAMPLE_COUNT, NULL_EVICTOR, SAMPLE_COUNT, SYSTEM_PROPERTY_SAMPLE_COUNT| Constructor and Description |
|---|
EvictorImpl(MapEvictionPolicy mapEvictionPolicy,
EvictionChecker evictionChecker,
IPartitionService partitionService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkEvictable(RecordStore recordStore)
Check whether the supplied record-store needs eviction.
|
void |
evict(RecordStore recordStore,
Data excludedKey)
Evict supplied record-store.
|
protected static long |
getNow() |
protected Record |
getRecordFromEntryView(EntryView selectedEntry) |
protected Iterable<EntryView> |
getSamples(RecordStore recordStore) |
protected boolean |
isBackup(RecordStore recordStore) |
protected final EvictionChecker evictionChecker
protected final IPartitionService partitionService
protected final MapEvictionPolicy mapEvictionPolicy
public EvictorImpl(MapEvictionPolicy mapEvictionPolicy, EvictionChecker evictionChecker, IPartitionService partitionService)
public void evict(RecordStore recordStore, Data excludedKey)
Evictorpublic boolean checkEvictable(RecordStore recordStore)
EvictorcheckEvictable in interface EvictorrecordStore - the recordStoretrue if eviction is required, false otherwise.protected boolean isBackup(RecordStore recordStore)
protected Iterable<EntryView> getSamples(RecordStore recordStore)
protected static long getNow()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.