org.ehcache.impl.config.sizeof
Class DefaultSizeOfEngineConfiguration

java.lang.Object
  extended by org.ehcache.impl.config.sizeof.DefaultSizeOfEngineConfiguration
All Implemented Interfaces:
SizeOfEngineConfiguration, ServiceConfiguration<SizeOfEngineProvider>

public class DefaultSizeOfEngineConfiguration
extends java.lang.Object
implements SizeOfEngineConfiguration


Field Summary
static long DEFAULT_MAX_OBJECT_SIZE
           
static int DEFAULT_OBJECT_GRAPH_SIZE
           
static MemoryUnit DEFAULT_UNIT
           
 
Constructor Summary
DefaultSizeOfEngineConfiguration(long size, MemoryUnit unit, long objectGraphSize)
           
 
Method Summary
 long getMaxObjectGraphSize()
          Maximum number of objects in Object graph
 long getMaxObjectSize()
          Maximum size limit of the object to be sized
 java.lang.Class<SizeOfEngineProvider> getServiceType()
          Indicates which service this configuration works with.
 MemoryUnit getUnit()
          The unit in which the object is sized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultSizeOfEngineConfiguration

public DefaultSizeOfEngineConfiguration(long size,
                                        MemoryUnit unit,
                                        long objectGraphSize)
Method Detail

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