org.ehcache.impl.config.sizeof
Class DefaultSizeOfEngineConfiguration

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

public class DefaultSizeOfEngineConfiguration
extends java.lang.Object
implements ServiceConfiguration<SizeOfEngineProvider>


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()
           
 long getMaxObjectSize()
           
 java.lang.Class<SizeOfEngineProvider> getServiceType()
          Indicates which service this configuration works with.
 MemoryUnit getUnit()
           
 
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()

getMaxObjectSize

public long getMaxObjectSize()

getUnit

public MemoryUnit getUnit()