public enum EvictionPolicyType extends Enum<EvictionPolicyType>
EvictionAlgorithm
Enum Constant and Description |
---|
ENTRY_COUNT |
HEAP_PERCENTAGE |
MEMORY_SIZE |
NONE |
Modifier and Type | Method and Description |
---|---|
org.apache.geode.cache.EvictionAlgorithm |
getEvictionAlgorithm()
Gets the Pivotal GemFire EvictionAlgorithm represented by this enumerated value.
|
static org.apache.geode.cache.EvictionAlgorithm |
getEvictionAlgorithm(EvictionPolicyType evictionPolicyType)
A null-safe operation to extract the Pivotal GemFire EvictionAlgorithm from the given EvictionPolicyType.
|
static EvictionPolicyType |
valueOf(org.apache.geode.cache.EvictionAlgorithm evictionAlgorithm)
Returns an EvictionPolicyType enumerated value matching the given Pivotal GemFire EvictionAlgorithm.
|
static EvictionPolicyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
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 type, in
the order they are declared.
|
public static final EvictionPolicyType ENTRY_COUNT
public static final EvictionPolicyType HEAP_PERCENTAGE
public static final EvictionPolicyType MEMORY_SIZE
public static final EvictionPolicyType NONE
public static EvictionPolicyType[] values()
for (EvictionPolicyType c : EvictionPolicyType.values()) System.out.println(c);
public static EvictionPolicyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static org.apache.geode.cache.EvictionAlgorithm getEvictionAlgorithm(EvictionPolicyType evictionPolicyType)
evictionPolicyType
- the EvictionPolicyType from which to extract the Pivotal GemFire EvictionAlgorithm.EvictionAlgorithm
,
getEvictionAlgorithm()
public static EvictionPolicyType valueOf(org.apache.geode.cache.EvictionAlgorithm evictionAlgorithm)
evictionAlgorithm
- the Pivotal GemFire EvictionAlgorithm used to lookup and match the EvictionPolicyType.EvictionAlgorithm
,
getEvictionAlgorithm()
public static EvictionPolicyType valueOfIgnoreCase(String name)
name
- a String indicating the name of the eviction policy used to match EvictionPolicyType.String.equalsIgnoreCase(String)
,
Enum.name()
public org.apache.geode.cache.EvictionAlgorithm getEvictionAlgorithm()
EvictionAlgorithm
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.