public enum EvictionPolicy extends Enum<EvictionPolicy>
Enum Constant and Description |
---|
LFU
Least Frequently Used
|
LRU
Least Recently Used
|
NONE
None
|
RANDOM
Randomly
|
Modifier and Type | Method and Description |
---|---|
static EvictionPolicy |
getById(int id) |
int |
getId() |
static EvictionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvictionPolicy LRU
public static final EvictionPolicy LFU
public static final EvictionPolicy NONE
public static final EvictionPolicy RANDOM
public static EvictionPolicy[] values()
for (EvictionPolicy c : EvictionPolicy.values()) System.out.println(c);
public static EvictionPolicy 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 int getId()
public static EvictionPolicy getById(int id)
Copyright © 2020 Hazelcast, Inc.. All rights reserved.