Package | Description |
---|---|
net.sf.ehcache.config |
This package contains the cache configuration code.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
CacheConfiguration |
CacheConfiguration.maxBytesLocalDisk(long amount,
MemoryUnit memoryUnit)
Sets the maxOnDisk size
This property can be modified dynamically while the cache is operating.
|
Configuration |
Configuration.maxBytesLocalDisk(long amount,
MemoryUnit memoryUnit)
Sets the maxOnDisk size
|
CacheConfiguration |
CacheConfiguration.maxBytesLocalHeap(long amount,
MemoryUnit memoryUnit)
Sets the maxOnHeap size
|
Configuration |
Configuration.maxBytesLocalHeap(long amount,
MemoryUnit memoryUnit)
Sets the maxOnHeap size for the cache being configured
|
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.
|
Configuration |
Configuration.maxBytesLocalOffHeap(long amount,
MemoryUnit memoryUnit)
Sets the maximum size for the OffHeap tier for all the caches this CacheManagers holds.
|
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.