ehcache

Uses of Class
net.sf.ehcache.config.MemoryUnit

Packages that use MemoryUnit
net.sf.ehcache.config This package contains the cache configuration code. 
 

Uses of MemoryUnit in net.sf.ehcache.config
 

Methods in net.sf.ehcache.config that return MemoryUnit
static MemoryUnit MemoryUnit.forUnit(char unit)
          Returns the MemoryUnit instance based on provided char
static MemoryUnit MemoryUnit.parseUnit(String value)
          Parses the unit part of a String, if no unit char available, returns BYTES
static MemoryUnit MemoryUnit.valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MemoryUnit[] MemoryUnit.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Methods in net.sf.ehcache.config with parameters of type MemoryUnit
 Configuration Configuration.maxBytesLocalDisk(long amount, MemoryUnit memoryUnit)
          Sets the maxOnDisk size
 CacheConfiguration CacheConfiguration.maxBytesLocalDisk(long amount, MemoryUnit memoryUnit)
          Sets the maxOnDisk size

This property can be modified dynamically while the cache is operating.

 Configuration Configuration.maxBytesLocalHeap(long amount, MemoryUnit memoryUnit)
          Sets the maxOnHeap size for the cache being configured
 CacheConfiguration CacheConfiguration.maxBytesLocalHeap(long amount, MemoryUnit memoryUnit)
          Sets the maxOnHeap size
 Configuration Configuration.maxBytesLocalOffHeap(long amount, MemoryUnit memoryUnit)
          Sets the maximum size for the OffHeap tier for all the caches this CacheManagers holds.
 CacheConfiguration CacheConfiguration.maxBytesLocalOffHeap(long amount, MemoryUnit memoryUnit)
          Sets the maxOffHeap tier size

Changes to this property once the cache is operating will have no effect.

 


ehcache

Copyright 2001-2014, Terracotta, Inc.