public class WrappedByteArraySizeCalculator<K,V> extends AbstractEntrySizeCalculatorHelper<K,V>
WrappedByteArray
by adding its size and the underlying byte[].HEADER_AND_CLASS_REFERENCE, OBJECT_SIZE, POINTER_SIZE
Constructor and Description |
---|
WrappedByteArraySizeCalculator(EntrySizeCalculator<?,?> chained) |
Modifier and Type | Method and Description |
---|---|
long |
calculateSize(K key,
V value)
Method used to calculate how much memory in size the key and value use.
|
roundUpToNearest8
public WrappedByteArraySizeCalculator(EntrySizeCalculator<?,?> chained)
public long calculateSize(K key, V value)
EntrySizeCalculator
key
- The key for this entry to be used in size calculationvalue
- The value for this entry to be used in size calculationCopyright © 2021 JBoss by Red Hat. All rights reserved.