@Immutable
public final class EvictionAlgorithm
extends javax.print.attribute.EnumSyntax
implements java.io.Serializable
EvictionActionEvictionAction,
EvictionAttributesImpl,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static EvictionAlgorithm |
LIFO_ENTRY
Deprecated.
For internal use only.
|
static EvictionAlgorithm |
LIFO_MEMORY
Deprecated.
For internal use only.
|
static EvictionAlgorithm |
LRU_ENTRY
An algorithm that considers the number of Entries in the Region before invoking its
EvictionAction |
static EvictionAlgorithm |
LRU_HEAP
An algorithm that considers the JVM heap size before invoking its
EvictionAction |
static EvictionAlgorithm |
LRU_MEMORY
An algorithm that considers the amount of bytes consumed by the Region before invoking its
EvictionAction |
static EvictionAlgorithm |
NONE
The canonical EvictionAction that represents no eviction action
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.print.attribute.EnumSyntax[] |
getEnumValueTable() |
protected java.lang.String[] |
getStringTable() |
boolean |
isLIFO()
Deprecated.
For internal use only.
|
boolean |
isLRU()
returns true if this object uses a least-recently-used algorithm
|
boolean |
isLRUEntry() |
boolean |
isLRUHeap() |
boolean |
isLRUMemory() |
boolean |
isNone() |
static EvictionAlgorithm |
parseAction(java.lang.String s) |
static EvictionAlgorithm |
parseValue(int v)
Returns the eviction algorithm that corresponds to the given parameter.
|
@Immutable public static final EvictionAlgorithm NONE
@Immutable public static final EvictionAlgorithm LRU_ENTRY
EvictionAction@Immutable public static final EvictionAlgorithm LRU_HEAP
EvictionAction@Immutable public static final EvictionAlgorithm LRU_MEMORY
EvictionAction@Deprecated @Immutable public static final EvictionAlgorithm LIFO_ENTRY
EvictionAction@Deprecated @Immutable public static final EvictionAlgorithm LIFO_MEMORY
EvictionActionprotected java.lang.String[] getStringTable()
getStringTable in class javax.print.attribute.EnumSyntaxprotected javax.print.attribute.EnumSyntax[] getEnumValueTable()
getEnumValueTable in class javax.print.attribute.EnumSyntaxpublic static EvictionAlgorithm parseValue(int v)
null if no algorithm corresponds.v - the parameter representation of an eviction algorithmpublic static EvictionAlgorithm parseAction(java.lang.String s)
public boolean isLRUEntry()
public boolean isLRUMemory()
public boolean isLRUHeap()
public boolean isLRU()
public boolean isNone()
@Deprecated public boolean isLIFO()