Package org.infinispan.container.entries
Class PrimitiveEntrySizeCalculator
-
-
Constructor Summary
Constructors Constructor Description PrimitiveEntrySizeCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
calculateSize(Object key, Object value)
Method used to calculate how much memory in size the key and value use.protected long
handleObject(Object object)
-
-
-
Method Detail
-
calculateSize
public long calculateSize(Object key, Object value)
Description copied from interface:org.infinispan.commons.util.EntrySizeCalculator
Method used to calculate how much memory in size the key and value use.- Parameters:
key
- The key for this entry to be used in size calculationvalue
- The value for this entry to be used in size calculation- Returns:
- The size approximately in memory the key and value use
-
handleObject
protected long handleObject(Object object)
-
-