| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SizeOfEngine
SizeOf engines are used to calculate the size of elements stored in poolable stores.
| Method Summary | |
|---|---|
|  SizeOfEngine | copyWith(int maxDepth,
         boolean abortWhenMaxDepthExceeded)Make a copy of the SizeOf engine, preserving all of its internal state but overriding the specified parameters | 
|  Size | sizeOf(Object key,
       Object value,
       Object container)Size an element | 
| Method Detail | 
|---|
Size sizeOf(Object key,
            Object value,
            Object container)
key - the key of the elementvalue - the value of the elementcontainer - the container of the element, ie: element object + eventual overhead
SizeOfEngine copyWith(int maxDepth,
                      boolean abortWhenMaxDepthExceeded)
maxDepth - maximum depth of the object graph to traverseabortWhenMaxDepthExceeded - true if the object traversal should be aborted when the max depth is exceeded
| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||