| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateHeapCost(Object obj) |
void |
clear(boolean isDuringShutdown) |
boolean |
containsKey(Data key) |
void |
destroy(boolean isDuringShutdown) |
void |
disposeDeferredBlocks() |
R |
get(Data key) |
Iterable<LazyEntryViewFromRecord> |
getRandomSamples(int sampleCount)
Used for sampling based eviction, returns sampled entries.
|
SizeEstimator |
getSizeEstimator() |
boolean |
isEmpty() |
void |
put(Data key,
R record) |
void |
removeRecord(R record) |
void |
setSizeEstimator(SizeEstimator sizeEstimator) |
int |
size() |
void |
updateRecordValue(Data key,
R record,
Object value) |
protected void |
updateSizeEstimator(long recordSize) |
Collection<R> |
values() |
public void clear(boolean isDuringShutdown)
public Collection<R> values()
public void updateRecordValue(Data key, R record, Object value)
updateRecordValue in interface Storage<Data,R extends Record>public void destroy(boolean isDuringShutdown)
public SizeEstimator getSizeEstimator()
getSizeEstimator in interface Storage<Data,R extends Record>public boolean containsKey(Data key)
containsKey in interface Storage<Data,R extends Record>public void removeRecord(R record)
removeRecord in interface Storage<Data,R extends Record>protected void updateSizeEstimator(long recordSize)
protected long calculateHeapCost(Object obj)
public void setSizeEstimator(SizeEstimator sizeEstimator)
setSizeEstimator in interface Storage<Data,R extends Record>public void disposeDeferredBlocks()
disposeDeferredBlocks in interface Storage<Data,R extends Record>public Iterable<LazyEntryViewFromRecord> getRandomSamples(int sampleCount)
StoragegetRandomSamples in interface Storage<Data,R extends Record>sampleCount - sample count.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.