K - The type of the keyV - The type of the valuepublic class CacheEntrySizeCalculator<K,V> extends AbstractEntrySizeCalculatorHelper<K,InternalCacheEntry<K,V>>
OBJECT_SIZE, POINTER_SIZE| Constructor and Description |
|---|
CacheEntrySizeCalculator(EntrySizeCalculator<? super K,? super V> calculator) |
| Modifier and Type | Method and Description |
|---|---|
long |
calculateSize(K key,
InternalCacheEntry<K,V> ice)
Method used to calculate how much memory in size the key and value use.
|
roundUpToNearest8public CacheEntrySizeCalculator(EntrySizeCalculator<? super K,? super V> calculator)
public long calculateSize(K key, InternalCacheEntry<K,V> ice)
EntrySizeCalculatorkey - The key for this entry to be used in size calculationice - The value for this entry to be used in size calculationCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.