Class MemoryConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.MemoryConfiguration
-
- All Implemented Interfaces:
Matchable<MemoryConfiguration>,BaseConfigurationInfo,ConfigurationInfo
public class MemoryConfiguration extends java.lang.Object implements Matchable<MemoryConfiguration>, ConfigurationInfo
Controls the memory storage configuration for the cache.- Author:
- William Burns
-
-
Field Summary
Fields Modifier and Type Field Description static ElementDefinitionELEMENT_DEFINITION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddressCount()The address pointer countbooleanequals(java.lang.Object o)EvictionStrategyevictionStrategy()The configured eviction strategyEvictionTypeevictionType()The configured eviction typeElementDefinitiongetElementDefinition()inthashCode()MemoryStorageConfigurationheapConfiguration()booleanisEvictionEnabled()Returns whether remove eviction is in uselongsize()Size of the eviction, -1 if disabledvoidsize(long newSize)StorageTypestorageType()Storage type to use for the data containerjava.util.List<ConfigurationInfo>subElements()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.BaseConfigurationInfo
attributes
-
-
-
-
Field Detail
-
ELEMENT_DEFINITION
public static final ElementDefinition ELEMENT_DEFINITION
-
-
Method Detail
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinitionin interfaceBaseConfigurationInfo- Returns:
- the
ElementDefinitionof the configuration.
-
subElements
public java.util.List<ConfigurationInfo> subElements()
- Specified by:
subElementsin interfaceConfigurationInfo- Returns:
- the list of sub elements.
-
storageType
public StorageType storageType()
Storage type to use for the data container- Returns:
-
size
public long size()
Size of the eviction, -1 if disabled- Returns:
-
size
public void size(long newSize)
-
evictionType
public EvictionType evictionType()
The configured eviction type- Returns:
-
evictionStrategy
public EvictionStrategy evictionStrategy()
The configured eviction strategy- Returns:
-
isEvictionEnabled
public boolean isEvictionEnabled()
Returns whether remove eviction is in use- Returns:
-
addressCount
public int addressCount()
The address pointer count- Returns:
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
heapConfiguration
public MemoryStorageConfiguration heapConfiguration()
-
-