Class MemoryConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<MemoryConfiguration>
org.infinispan.configuration.cache.MemoryConfiguration
- All Implemented Interfaces:
Matchable<MemoryConfiguration>
,Updatable<MemoryConfiguration>
Controls the memory storage configuration for the cache.
- Author:
- William Burns
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeDefinition
<Long> static final AttributeDefinition
<String> static final AttributeDefinition
<StorageType> static final AttributeDefinition
<EvictionStrategy> Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usemaxCount()
ormaxSize()
to obtain either the maximum number of entries or the maximum size of the data container.Deprecated, for removal: This API element is subject to removal in a future version.boolean
Returns whether remove eviction is in useboolean
long
maxCount()
void
maxCount
(long maxCount) maxSize()
void
long
long
size()
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usemaxCount()
ormaxSize()
to obtain either the maximum number of entries or the maximum size of the data container.void
size
(long newSize) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usemaxCount(long)
ormaxSize(String)
to dynamically configure the maximum number of entries or the maximum size of the data container.storage()
Deprecated, for removal: This API element is subject to removal in a future version.Usestorage()
instead.whenFull()
Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, validateUpdate, write
-
Field Details
-
STORAGE
-
MAX_SIZE
-
MAX_COUNT
-
WHEN_FULL
-
-
Method Details
-
isOffHeap
public boolean isOffHeap()- Returns:
- true if the storage is off-heap
-
maxSizeBytes
public long maxSizeBytes()- Returns:
- The max size in bytes or -1 if not configured.
-
maxSize
-
maxSize
-
maxCount
public long maxCount()- Returns:
- the max number of entries in memory or -1 if not configured.
-
maxCount
public void maxCount(long maxCount) -
storageType
Deprecated, for removal: This API element is subject to removal in a future version.Usestorage()
instead.Storage type to use for the data container -
storage
- Returns:
- The memory
StorageType
.
-
size
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usemaxCount()
ormaxSize()
to obtain either the maximum number of entries or the maximum size of the data container.Size of the eviction, -1 if disabled -
size
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usemaxCount(long)
ormaxSize(String)
to dynamically configure the maximum number of entries or the maximum size of the data container. -
evictionType
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usemaxCount()
ormaxSize()
to obtain either the maximum number of entries or the maximum size of the data container.The configured eviction type -
evictionStrategy
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, usewhenFull()
The configured eviction strategy -
whenFull
- Returns:
- The configured
EvictionStrategy
.
-
isEvictionEnabled
public boolean isEvictionEnabled()Returns whether remove eviction is in use -
heapConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.
-
whenFull()