public enum EvictionPolicyType extends Enum<EvictionPolicyType>
Enum Constant and Description |
---|
LFU
Least Frequently Used
|
LRU
Least Recently Used
|
NONE
Doesn't evict entries (will not add new entries to the Near Cache when it's full)
|
RANDOM
Picks a random entry
|
Modifier and Type | Method and Description |
---|---|
static EvictionPolicyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvictionPolicyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvictionPolicyType LRU
public static final EvictionPolicyType LFU
public static final EvictionPolicyType RANDOM
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 nullCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.