Enum Class DistributedMapConfig.EvictionPolicy
java.lang.Object
java.lang.Enum<DistributedMapConfig.EvictionPolicy>
com.loomcache.server.datastructures.DistributedMapConfig.EvictionPolicy
- All Implemented Interfaces:
Serializable, Comparable<DistributedMapConfig.EvictionPolicy>, Constable
- Enclosing class:
DistributedMapConfig
public static enum DistributedMapConfig.EvictionPolicy
extends Enum<DistributedMapConfig.EvictionPolicy>
Eviction policy applied when the map reaches
maxSize.
NONE— no eviction; puts beyond maxSize are rejectedLRU— least-recently-used entry is evictedLFU— least-frequently-used entry is evictedFIFO— first-in, first-out (oldest-inserted entry is evicted)RANDOM— random entry is evicted
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DistributedMapConfig.EvictionPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
LRU
-
LFU
-
FIFO
-
RANDOM
-
-
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
-