public final class EvictionAlgorithm extends EnumSyntax
EvictionAction
EvictionAction
,
EvictionAttributesImpl
,
Serialized FormModifier and Type | Field and Description |
---|---|
static EvictionAlgorithm |
LIFO_ENTRY
Deprecated.
|
static EvictionAlgorithm |
LIFO_MEMORY
Deprecated.
|
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 |
---|---|
boolean |
isLIFO()
Deprecated.
|
boolean |
isLRU()
returns true if this object uses a least-recently-used algorithm
|
boolean |
isLRUEntry() |
boolean |
isLRUHeap() |
boolean |
isLRUMemory() |
boolean |
isNone() |
static EvictionAlgorithm |
parseAction(String s) |
static EvictionAlgorithm |
parseValue(int v)
Returns the eviction action the corresponds to the given parameter.
|
clone, getValue, hashCode, toString
public static final EvictionAlgorithm NONE
public static final EvictionAlgorithm LRU_ENTRY
EvictionAction
public static final EvictionAlgorithm LRU_HEAP
EvictionAction
public static final EvictionAlgorithm LRU_MEMORY
EvictionAction
public static final EvictionAlgorithm LIFO_ENTRY
EvictionAction
public static final EvictionAlgorithm LIFO_MEMORY
EvictionAction
public static EvictionAlgorithm parseValue(int v)
null
if no action corresponds.public static EvictionAlgorithm parseAction(String s)
public final boolean isLRUEntry()
public final boolean isLRUMemory()
public final boolean isLRUHeap()
public boolean isLRU()
public final boolean isNone()
public boolean isLIFO()
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.