com.hazelcast.config
Enum EvictionPolicy

java.lang.Object
  extended by java.lang.Enum<EvictionPolicy>
      extended by com.hazelcast.config.EvictionPolicy
All Implemented Interfaces:
Serializable, Comparable<EvictionPolicy>

public enum EvictionPolicy
extends Enum<EvictionPolicy>

Eviction Policy enum.


Enum Constant Summary
LFU
          Least Frequently Used
LRU
          Least Recently Used
NONE
          None
RANDOM
          Randomly
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LRU

public static final EvictionPolicy LRU
Least Recently Used


LFU

public static final EvictionPolicy LFU
Least Frequently Used


NONE

public static final EvictionPolicy NONE
None


RANDOM

public static final EvictionPolicy RANDOM
Randomly

Method Detail

values

public static EvictionPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EvictionPolicy c : EvictionPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EvictionPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.