public static class Region.Eviction extends Object implements Serializable
Constructor and Description |
---|
Eviction() |
Modifier and Type | Method and Description |
---|---|
Region.EvictionAction |
getAction() |
Integer |
getEntryCount() |
Integer |
getMemorySizeMb() |
ClassName |
getObjectSizer() |
Region.EvictionType |
getType() |
void |
setAction(Region.EvictionAction action) |
void |
setEntryCount(Integer entryCount)
this sets the entry count and the eviction type to ENTRY_COUNT
|
void |
setMemorySizeMb(Integer memorySizeMb)
this sets the memory size in megabytes and the eviction type to MEMORY_SIZE
|
void |
setObjectSizer(ClassName objectSizer) |
void |
setType(Region.EvictionType type)
once a type is set, it can not be changed to another value.
|
public Region.EvictionType getType()
public void setType(Region.EvictionType type)
type
- eviction typeIllegalArgumentException
- 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}public Region.EvictionAction getAction()
public void setAction(Region.EvictionAction action)
public Integer getEntryCount()
public void setEntryCount(Integer entryCount)
entryCount
- the entry countIllegalArgumentException
- 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}public Integer getMemorySizeMb()
public void setMemorySizeMb(Integer memorySizeMb)
memorySizeMb
- the memory size in megabytesIllegalArgumentException
- 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}public ClassName getObjectSizer()
public void setObjectSizer(ClassName objectSizer)