org.ehcache.impl.config.sizeof
Class DefaultSizeOfEngineProviderConfiguration

java.lang.Object
  extended by org.ehcache.impl.config.sizeof.DefaultSizeOfEngineProviderConfiguration
All Implemented Interfaces:
SizeOfEngineProviderConfiguration, ServiceCreationConfiguration<SizeOfEngineProvider>

public class DefaultSizeOfEngineProviderConfiguration
extends java.lang.Object
implements SizeOfEngineProviderConfiguration


Constructor Summary
DefaultSizeOfEngineProviderConfiguration(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 consumes this configuration at creation.
 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
 

Constructor Detail

DefaultSizeOfEngineProviderConfiguration

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

getServiceType

public java.lang.Class<SizeOfEngineProvider> getServiceType()
Description copied from interface: ServiceCreationConfiguration
Indicates which service consumes this configuration at creation.

Specified by:
getServiceType in interface ServiceCreationConfiguration<SizeOfEngineProvider>
Returns:
the service type

getMaxObjectGraphSize

public long getMaxObjectGraphSize()
Description copied from interface: SizeOfEngineProviderConfiguration
Maximum number of objects in Object graph

Specified by:
getMaxObjectGraphSize in interface SizeOfEngineProviderConfiguration
Returns:
maximum number of objects in Object graph

getMaxObjectSize

public long getMaxObjectSize()
Description copied from interface: SizeOfEngineProviderConfiguration
Maximum size limit of the object to be sized

Specified by:
getMaxObjectSize in interface SizeOfEngineProviderConfiguration
Returns:
maximum size limit of the object to be sized

getUnit

public MemoryUnit getUnit()
Description copied from interface: SizeOfEngineProviderConfiguration
The unit in which the object is sized.

Specified by:
getUnit in interface SizeOfEngineProviderConfiguration
Returns:
the unit