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.
|
void |
forceEvict(RecordStore recordStore)
Evicts provided record-store forcibly.
|
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.void forceEvict(RecordStore recordStore)
recordStore
- the recordStoreboolean checkEvictable(RecordStore recordStore)
recordStore
- the recordStoretrue
if eviction is required, false
otherwise.Copyright © 2019 Hazelcast, Inc.. All rights reserved.