Enum Class EvictionPolicyType
- All Implemented Interfaces:
Serializable
,Comparable<EvictionPolicyType>
,Constable
The EvictionPolicyType enum is an enumeration of all GemFire Eviction policies, where the Eviction 'policy'
is a combination of the Eviction algorithm mixed with the monitored resource (e.g. such as JVM HEAP memory).
- Since:
- 1.0.0
- See Also:
-
EvictionAlgorithm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.EvictionAlgorithm
Gets the GemFire EvictionAlgorithm represented by this enumerated value.static org.apache.geode.cache.EvictionAlgorithm
getEvictionAlgorithm
(EvictionPolicyType evictionPolicyType) A null-safe operation to extract the GemFire EvictionAlgorithm from the given EvictionPolicyType.static EvictionPolicyType
Returns the enum constant of this class with the specified name.static EvictionPolicyType
valueOf
(org.apache.geode.cache.EvictionAlgorithm evictionAlgorithm) Returns an EvictionPolicyType enumerated value matching the given GemFire EvictionAlgorithm.static EvictionPolicyType
valueOfIgnoreCase
(String name) Returns an EvictionPolicyType enumerated value given the case-insensitive, named eviction policy.static EvictionPolicyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENTRY_COUNT
-
HEAP_PERCENTAGE
-
MEMORY_SIZE
-
NONE
-
-
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
-
getEvictionAlgorithm
public static org.apache.geode.cache.EvictionAlgorithm getEvictionAlgorithm(EvictionPolicyType evictionPolicyType) A null-safe operation to extract the GemFire EvictionAlgorithm from the given EvictionPolicyType.- Parameters:
evictionPolicyType
- the EvictionPolicyType from which to extract the GemFire EvictionAlgorithm.- Returns:
- the GemFire EvictionAlgorithm for the corresponding EvictionPolicyType or null if evictionType is null.
- See Also:
-
EvictionAlgorithm
getEvictionAlgorithm()
-
valueOf
public static EvictionPolicyType valueOf(org.apache.geode.cache.EvictionAlgorithm evictionAlgorithm) Returns an EvictionPolicyType enumerated value matching the given GemFire EvictionAlgorithm.- Parameters:
evictionAlgorithm
- the GemFire EvictionAlgorithm used to lookup and match the EvictionPolicyType.- Returns:
- an EvictionPolicyType matching the specified GemFire EvictionAlgorithm or null if no match was found.
- See Also:
-
EvictionAlgorithm
getEvictionAlgorithm()
-
valueOfIgnoreCase
Returns an EvictionPolicyType enumerated value given the case-insensitive, named eviction policy.- Parameters:
name
- a String indicating the name of the eviction policy used to match EvictionPolicyType.- Returns:
- an EvictionPolicyType matching the given the case-insensitive, named eviction policy.
- See Also:
-
getEvictionAlgorithm
public org.apache.geode.cache.EvictionAlgorithm getEvictionAlgorithm()Gets the GemFire EvictionAlgorithm represented by this enumerated value.- Returns:
- the GemFire EvictionAlgorithm represented by this enum.
- See Also:
-
EvictionAlgorithm
-