Package com.scaleout.client.caching
Enum Class PreemptionPriority
- All Implemented Interfaces:
Serializable
,Comparable<PreemptionPriority>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe object is a candidate for removal from StateServer memory if memory pressure warrantsThe associated object must remain in memory until its expiration is reached or the object is explicitly removed. -
Method Summary
Modifier and TypeMethodDescriptionstatic PreemptionPriority
fromString
(String value) Retrieve a PreemptionPriority from a string.static PreemptionPriority
Returns the enum constant of this class with the specified name.static PreemptionPriority[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NotRemovable
The associated object must remain in memory until its expiration is reached or the object is explicitly removed. -
Normal
The object is a candidate for removal from StateServer memory if memory pressure warrants
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
Retrieve a PreemptionPriority from a string. Accepted values:Constants.MEMORY_PREEMPTION_PRIORITY_NORMAL
Constants.MEMORY_PREEMPTION_PRIORITY_NOTREMOVABLE
- Parameters:
value
-Constants.MEMORY_PREEMPTION_PRIORITY_NORMAL
, orConstants.MEMORY_PREEMPTION_PRIORITY_NOTREMOVABLE
- Returns:
- the PreemptionPriority that maps to the parameter string value.
-