org.ehcache.impl.internal.sizeof
Class DefaultSizeOfEngine

java.lang.Object
  extended by org.ehcache.impl.internal.sizeof.DefaultSizeOfEngine
All Implemented Interfaces:
SizeOfEngine

public class DefaultSizeOfEngine
extends java.lang.Object
implements SizeOfEngine


Constructor Summary
DefaultSizeOfEngine(long maxObjectGraphSize, long maxObjectSize)
           
 
Method Summary
<K,V> long
sizeof(K key, Store.ValueHolder<V> holder)
          Size of the objects on Heap including the overhead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSizeOfEngine

public DefaultSizeOfEngine(long maxObjectGraphSize,
                           long maxObjectSize)
Method Detail

sizeof

public <K,V> long sizeof(K key,
                         Store.ValueHolder<V> holder)
            throws LimitExceededException
Description copied from interface: SizeOfEngine
Size of the objects on Heap including the overhead

Specified by:
sizeof in interface SizeOfEngine
Parameters:
key - key to be sized
holder - value holder to be sized
Returns:
size of the objects on heap including the overhead
Throws:
LimitExceededException