Package org.ehcache.sizeof.impl
Class UnsafeSizeOf
java.lang.Object
org.ehcache.sizeof.SizeOf
org.ehcache.sizeof.impl.UnsafeSizeOf
Unsafe.theUnsafe
based sizeOf measurement
All constructors will throw UnsupportedOperationException if theUnsafe isn't accessible on this platform-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuilds a new SizeOf that will not filter fields and will cache reflected fieldsUnsafeSizeOf
(SizeOfFilter filter) Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fieldsUnsafeSizeOf
(SizeOfFilter filter, boolean caching, boolean bypassFlyweight) Builds a new SizeOf that will filter fields according to the provided filter -
Method Summary
Methods inherited from class org.ehcache.sizeof.SizeOf
deepSizeOf, deepSizeOf, newInstance, newInstance
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
UNSAFE
private static final sun.misc.Unsafe UNSAFE
-
-
Constructor Details
-
UnsafeSizeOf
Builds a new SizeOf that will not filter fields and will cache reflected fields- Throws:
UnsupportedOperationException
- If Unsafe isn't accessible- See Also:
-
UnsafeSizeOf
Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields- Parameters:
filter
- The filter to apply- Throws:
UnsupportedOperationException
- If Unsafe isn't accessible- See Also:
-
UnsafeSizeOf
public UnsafeSizeOf(SizeOfFilter filter, boolean caching, boolean bypassFlyweight) throws UnsupportedOperationException Builds a new SizeOf that will filter fields according to the provided filter- Parameters:
filter
- The filter to applycaching
- whether to cache reflected fieldsbypassFlyweight
- whether "Flyweight Objects" are to be ignored- Throws:
UnsupportedOperationException
- If Unsafe isn't accessible- See Also:
-
-
Method Details