K - the type of key which's size going to be estimated.V - the type of key which's size going to be estimated.public interface EntryCostEstimator<K,V>
| Modifier and Type | Method and Description | 
|---|---|
| void | adjustEstimateBy(long adjustment)Adjust the memory cost estimation by the given adjustment. | 
| long | calculateEntryCost(K key,
                  V value)Calculate the entry's cost in memory | 
| long | calculateValueCost(V value)Calculate the entry's value cost in memory | 
| long | getEstimate()Returns the memory cost estimation so far | 
| void | reset()Reset the current estimation to zero. | 
long getEstimate()
void adjustEstimateBy(long adjustment)
adjustment - The delta by which the estimation will be adjustedlong calculateValueCost(V value)
value - The entry's valuelong calculateEntryCost(K key, V value)
key - The key of the entryvalue - The value of the entryvoid reset()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.