org.ehcache.core.spi.sizeof
Interface SizeOfEngine
- All Known Implementing Classes:
- DefaultSizeOfEngine, NoopSizeOfEngine
public interface SizeOfEngine
SizeOf engines are used to calculate the size of objects.
sizeof
<K,V> long sizeof(K key,
Store.ValueHolder<V> holder)
throws LimitExceededException
- Size of the objects on Heap including the
overhead
- Parameters:
key
- key to be sizedholder
- value holder to be sized
- Returns:
- size of the objects on heap including the overhead
- Throws:
LimitExceededException