Package org.infinispan.commons.util
Class AbstractEntrySizeCalculatorHelper<K,V>
- java.lang.Object
-
- org.infinispan.commons.util.AbstractEntrySizeCalculatorHelper<K,V>
-
- All Implemented Interfaces:
EntrySizeCalculator<K,V>
public abstract class AbstractEntrySizeCalculatorHelper<K,V> extends Object implements EntrySizeCalculator<K,V>
Abstract class that provides a method to round up to the nearest value of 8 which is important for most jvm when doing size calculations. This is due to the fact that most JVMs align to the nearest 8 bytes for addressing purposes.
-
-
Field Summary
Fields Modifier and Type Field Description static int
HEADER_AND_CLASS_REFERENCE
static int
OBJECT_SIZE
static int
POINTER_SIZE
-
Constructor Summary
Constructors Constructor Description AbstractEntrySizeCalculatorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
roundUpToNearest8(long size)
-
Methods inherited from interface org.infinispan.commons.util.EntrySizeCalculator
calculateSize
-
-