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_COUNT
static AttributeDefinition<EvictionStrategy>
EVICTION_STRATEGY
static AttributeDefinition<EvictionType>
EVICTION_TYPE
static AttributeDefinition<Long>
SIZE
static AttributeDefinition<StorageType>
STORAGE_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addressCount()
The address pointer countstatic AttributeSet
attributeDefinitionSet()
AttributeSet
attributes()
boolean
equals(Object obj)
EvictionStrategy
evictionStrategy()
The configured eviction strategyEvictionType
evictionType()
The configured eviction typeint
hashCode()
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 containerString
toString()
-
-
-
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()
-
-