Class MemoryConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.MemoryConfiguration
-
- All Implemented Interfaces:
Matchable<MemoryConfiguration>
public class MemoryConfiguration extends Object implements Matchable<MemoryConfiguration>
Controls the memory storage configuration for the cache.- Author:
- William Burns
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<Integer>ADDRESS_COUNTstatic AttributeDefinition<EvictionStrategy>EVICTION_STRATEGYstatic AttributeDefinition<EvictionType>EVICTION_TYPEstatic AttributeDefinition<Long>SIZEstatic AttributeDefinition<StorageType>STORAGE_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddressCount()The address pointer countstatic AttributeSetattributeDefinitionSet()AttributeSetattributes()booleanequals(Object obj)EvictionStrategyevictionStrategy()The configured eviction strategyEvictionTypeevictionType()The configured eviction typeinthashCode()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 containerStringtoString()
-
-
-
Field Detail
-
ADDRESS_COUNT
public static final AttributeDefinition<Integer> ADDRESS_COUNT
-
STORAGE_TYPE
public static final AttributeDefinition<StorageType> STORAGE_TYPE
-
SIZE
public static final AttributeDefinition<Long> SIZE
-
EVICTION_TYPE
public static final AttributeDefinition<EvictionType> EVICTION_TYPE
-
EVICTION_STRATEGY
public static final AttributeDefinition<EvictionStrategy> EVICTION_STRATEGY
-
-
Method Detail
-
attributeDefinitionSet
public static AttributeSet attributeDefinitionSet()
-
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:
-
attributes
public AttributeSet attributes()
-
-