public interface Evictor
RecordStore
.
When the RecordStore
needs to be evicted according to checkEvictable(com.hazelcast.map.impl.recordstore.RecordStore)
,
Evictor
removes records from RecordStore
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SAMPLE_COUNT |
static Evictor |
NULL_EVICTOR |
static int |
SAMPLE_COUNT |
static String |
SYSTEM_PROPERTY_SAMPLE_COUNT |
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.
|
static final Evictor NULL_EVICTOR
static final String SYSTEM_PROPERTY_SAMPLE_COUNT
static final int DEFAULT_SAMPLE_COUNT
static final int SAMPLE_COUNT
void evict(RecordStore recordStore, Data excludedKey)
recordStore
- the recordStoreexcludedKey
- this key has lowest priority to be selected for eviction and it is nullable.boolean checkEvictable(RecordStore recordStore)
recordStore
- the recordStoretrue
if eviction is required, false
otherwise.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.