public class MemoryConfiguration extends Object implements Matchable<MemoryConfiguration>, ConfigurationInfo
Modifier and Type | Field and Description |
---|---|
static ElementDefinition<?> |
ELEMENT_DEFINITION |
static AttributeDefinition<Long> |
MAX_COUNT |
static AttributeDefinition<String> |
MAX_SIZE |
static AttributeDefinition<StorageType> |
STORAGE |
static AttributeDefinition<EvictionStrategy> |
WHEN_FULL |
Modifier and Type | Method and Description |
---|---|
AttributeSet |
attributes() |
boolean |
equals(Object o) |
EvictionStrategy |
evictionStrategy()
Deprecated.
Since 11.0, use
whenFull() |
EvictionType |
evictionType()
Deprecated.
Since 11.0, use
maxCount() or maxSize() to obtain either the maximum number of
entries or the maximum size of the data container. |
ElementDefinition<?> |
getElementDefinition() |
int |
hashCode() |
MemoryStorageConfiguration |
heapConfiguration()
Deprecated.
Since 11.0, use
evictionStrategy() , maxSize() ,
maxCount() , isOffHeap() instead |
boolean |
isEvictionEnabled()
Returns whether remove eviction is in use
|
boolean |
isOffHeap() |
long |
maxCount() |
void |
maxCount(long maxCount) |
String |
maxSize() |
void |
maxSize(String maxSize) |
long |
maxSizeBytes() |
long |
size()
Deprecated.
Since 11.0, use
maxCount() or maxSize() to obtain
either the maximum number of entries or the maximum size of the data container. |
void |
size(long newSize)
Deprecated.
Since 11.0, use
maxCount(long) or
maxSize(String) to dynamically configure the maximum number
of entries or the maximum size of the data container. |
StorageType |
storage() |
StorageType |
storageType()
Deprecated.
Use
storage() instead. |
String |
toString() |
EvictionStrategy |
whenFull() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
subElements
public static final ElementDefinition<?> ELEMENT_DEFINITION
public static final AttributeDefinition<StorageType> STORAGE
public static final AttributeDefinition<String> MAX_SIZE
public static final AttributeDefinition<Long> MAX_COUNT
public static final AttributeDefinition<EvictionStrategy> WHEN_FULL
public ElementDefinition<?> getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public boolean isOffHeap()
public long maxSizeBytes()
public String maxSize()
public void maxSize(String maxSize)
public long maxCount()
public void maxCount(long maxCount)
@Deprecated public StorageType storageType()
storage()
instead.public StorageType storage()
StorageType
.@Deprecated public long size()
maxCount()
or maxSize()
to obtain
either the maximum number of entries or the maximum size of the data container.@Deprecated public void size(long newSize)
maxCount(long)
or
maxSize(String)
to dynamically configure the maximum number
of entries or the maximum size of the data container.@Deprecated public EvictionType evictionType()
maxCount()
or maxSize()
to obtain either the maximum number of
entries or the maximum size of the data container.@Deprecated public EvictionStrategy evictionStrategy()
whenFull()
public EvictionStrategy whenFull()
EvictionStrategy
.public boolean isEvictionEnabled()
@Deprecated public MemoryStorageConfiguration heapConfiguration()
evictionStrategy()
, maxSize()
,
maxCount()
, isOffHeap()
insteadCopyright © 2021 JBoss by Red Hat. All rights reserved.