Class Region.Eviction
java.lang.Object
org.apache.geode.management.configuration.Region.Eviction
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Region
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()voidsetAction(Region.EvictionAction action) voidsetEntryCount(Integer entryCount) this sets the entry count and the eviction type to ENTRY_COUNTvoidsetMemorySizeMb(Integer memorySizeMb) this sets the memory size in megabytes and the eviction type to MEMORY_SIZEvoidsetObjectSizer(ClassName objectSizer) voidsetType(Region.EvictionType type) once a type is set, it can not be changed to another value.
-
Constructor Details
-
Eviction
public Eviction()
-
-
Method Details
-
getType
-
setType
once a type is set, it can not be changed to another value.- Parameters:
type- eviction type- Throws:
IllegalArgumentException- if type is already set to another value. this is to prevent users from trying to send in conflicting attributes in json format such as {entryCount:10,type:HEAP_PERCENTAGE}
-
getAction
-
setAction
-
getEntryCount
-
setEntryCount
this sets the entry count and the eviction type to ENTRY_COUNT- Parameters:
entryCount- the entry count- Throws:
IllegalArgumentException- if type is already set to another value. This is to prevent users from trying to send conflicting json attributes such as {type:HEAP_PERCENTAGE,entryCount:10}
-
getMemorySizeMb
-
setMemorySizeMb
this sets the memory size in megabytes and the eviction type to MEMORY_SIZE- Parameters:
memorySizeMb- the memory size in megabytes- Throws:
IllegalArgumentException- if type is already set to other values. This is to prevent users from trying to send conflicting json attributes such as {type:HEAP_PERCENTAGE,memorySizeMb:100}
-
getObjectSizer
-
setObjectSizer
-