public enum PreemptionPriority extends java.lang.Enum<PreemptionPriority>
The PreemptionPriority enum is used to indicate the priority of keeping a given object in the ScaleOut in-memory data grid under low-memory conditions.
Removable objects are removed from memory when memory runs low based on a least recently used (LRU) algorithm.
| Enum Constant and Description |
|---|
Normal
The object is a candidate for removal from StateServer memory if memory pressure warrants
|
NotRemovable
The associated object must remain in memory until its expiration is reached or the object is explicitly removed.
|
| Modifier and Type | Method and Description |
|---|---|
static PreemptionPriority |
fromString(java.lang.String value)
Retrieve a PreemptionPriority from a string.
|
byte |
get()
Retrieve the byte value of this enum.
|
static PreemptionPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PreemptionPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreemptionPriority NotRemovable
public static final PreemptionPriority Normal
public static PreemptionPriority[] values()
for (PreemptionPriority c : PreemptionPriority.values()) System.out.println(c);
public static PreemptionPriority valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte get()
public static PreemptionPriority fromString(java.lang.String value)
Constants.MEMORY_PREEMPTION_PRIORITY_NORMAL
Constants.MEMORY_PREEMPTION_PRIORITY_NOTREMOVABLEvalue - Constants.MEMORY_PREEMPTION_PRIORITY_NORMAL, or Constants.MEMORY_PREEMPTION_PRIORITY_NOTREMOVABLE