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,
int batchSize) |
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) |
String |
toString() |
protected final EvictionChecker evictionChecker
protected final IPartitionService partitionService
protected final MapEvictionPolicy mapEvictionPolicy
public EvictorImpl(MapEvictionPolicy mapEvictionPolicy, EvictionChecker evictionChecker, IPartitionService partitionService, int batchSize)
public void evict(RecordStore recordStore, Data excludedKey)
Evictor
public boolean checkEvictable(RecordStore recordStore)
Evictor
checkEvictable
in interface Evictor
recordStore
- the recordStoretrue
if eviction is required, false
otherwise.protected boolean isBackup(RecordStore recordStore)
protected Iterable<EntryView> getSamples(RecordStore recordStore)
protected static long getNow()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.