|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.pool.sizeof.SizeOf net.sf.ehcache.pool.sizeof.UnsafeSizeOf
public class UnsafeSizeOf
Unsafe.theUnsafe
based sizeOf measurement
All constructors will throw UnsupportedOperationException if theUnsafe isn't accessible on this platform
Constructor Summary | |
---|---|
UnsafeSizeOf()
Builds a new SizeOf that will not filter fields and will cache reflected fields |
|
UnsafeSizeOf(SizeOfFilter filter)
Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields |
|
UnsafeSizeOf(SizeOfFilter filter,
boolean caching)
Builds a new SizeOf that will filter fields according to the provided filter |
Method Summary | |
---|---|
long |
sizeOf(Object obj)
Calculates the size in memory (heap) of the instance passed in, not navigating the down graph |
Methods inherited from class net.sf.ehcache.pool.sizeof.SizeOf |
---|
deepSizeOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnsafeSizeOf() throws UnsupportedOperationException
UnsupportedOperationException
- If Unsafe isn't accessibleUnsafeSizeOf(net.sf.ehcache.pool.sizeof.filter.SizeOfFilter, boolean)
public UnsafeSizeOf(SizeOfFilter filter) throws UnsupportedOperationException
filter
- The filter to apply
UnsupportedOperationException
- If Unsafe isn't accessibleUnsafeSizeOf(net.sf.ehcache.pool.sizeof.filter.SizeOfFilter, boolean)
,
SizeOfFilter
public UnsafeSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException
filter
- The filter to applycaching
- whether to cache reflected fields
UnsupportedOperationException
- If Unsafe isn't accessibleSizeOfFilter
Method Detail |
---|
public long sizeOf(Object obj)
sizeOf
in class SizeOf
obj
- the object to measure the size of
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |