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 ElementDefinition
ELEMENT_DEFINITION
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
addressCount()
Deprecated.since 10.0boolean
equals(java.lang.Object o)
EvictionStrategy
evictionStrategy()
The configured eviction strategyEvictionType
evictionType()
The configured eviction typeElementDefinition
getElementDefinition()
int
hashCode()
MemoryStorageConfiguration
heapConfiguration()
boolean
isEvictionEnabled()
Returns whether remove eviction is in uselong
size()
Size of the eviction, -1 if disabledvoid
size(long newSize)
StorageType
storageType()
Storage type to use for the data containerjava.util.List<ConfigurationInfo>
subElements()
java.lang.String
toString()
-
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:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
subElements
public java.util.List<ConfigurationInfo> subElements()
- Specified by:
subElements
in 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
@Deprecated public int addressCount()
Deprecated.since 10.0The address pointer count- Returns:
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
heapConfiguration
public MemoryStorageConfiguration heapConfiguration()
-
-