public static enum SpaceDef.EvictionPolicy extends java.lang.Enum<SpaceDef.EvictionPolicy>
Enum Constant and Description |
---|
LRU
Evict entries using the 'Least Recently Used' algorithm to make room for new entries being inserted in the space when capacity is reached
|
NONE
Throw exception on space operation if there is not enough capacity
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static SpaceDef.EvictionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpaceDef.EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpaceDef.EvictionPolicy NONE
public static final SpaceDef.EvictionPolicy LRU
public static SpaceDef.EvictionPolicy[] values()
for (SpaceDef.EvictionPolicy c : SpaceDef.EvictionPolicy.values()) System.out.println(c);
public static SpaceDef.EvictionPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
Copyright (c) 2014 Cloud Software Group, Inc. All rights reserved.