org.ehcache.impl.config.sizeof
Class DefaultSizeOfEngineConfiguration
java.lang.Object
org.ehcache.impl.config.sizeof.DefaultSizeOfEngineConfiguration
- All Implemented Interfaces:
- SizeOfEngineConfiguration, ServiceConfiguration<SizeOfEngineProvider>
public class DefaultSizeOfEngineConfiguration
- extends java.lang.Object
- implements SizeOfEngineConfiguration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_OBJECT_GRAPH_SIZE
public static final int DEFAULT_OBJECT_GRAPH_SIZE
- See Also:
- Constant Field Values
DEFAULT_MAX_OBJECT_SIZE
public static final long DEFAULT_MAX_OBJECT_SIZE
- See Also:
- Constant Field Values
DEFAULT_UNIT
public static final MemoryUnit DEFAULT_UNIT
DefaultSizeOfEngineConfiguration
public DefaultSizeOfEngineConfiguration(long size,
MemoryUnit unit,
long objectGraphSize)
getServiceType
public java.lang.Class<SizeOfEngineProvider> getServiceType()
- Description copied from interface:
ServiceConfiguration
- Indicates which service this configuration works with.
- Specified by:
getServiceType
in interface ServiceConfiguration<SizeOfEngineProvider>
- Returns:
- the service type
getMaxObjectGraphSize
public long getMaxObjectGraphSize()
- Description copied from interface:
SizeOfEngineConfiguration
- Maximum number of objects in Object graph
- Specified by:
getMaxObjectGraphSize
in interface SizeOfEngineConfiguration
- Returns:
- maximum number of objects in Object graph
getMaxObjectSize
public long getMaxObjectSize()
- Description copied from interface:
SizeOfEngineConfiguration
- Maximum size limit of the object to be sized
- Specified by:
getMaxObjectSize
in interface SizeOfEngineConfiguration
- Returns:
- maximum size limit of the object to be sized
getUnit
public MemoryUnit getUnit()
- Description copied from interface:
SizeOfEngineConfiguration
- The unit in which the object is sized.
- Specified by:
getUnit
in interface SizeOfEngineConfiguration
- Returns:
- the unit