GemFire 6.5.1.2

com.gemstone.gemfire.cache
Class EvictionAlgorithm

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by com.gemstone.gemfire.cache.EvictionAlgorithm
All Implemented Interfaces:
Serializable, Cloneable

public final class EvictionAlgorithm
extends EnumSyntax

The algorithm used to determine when to perform an EvictionAction

Since:
5.0
See Also:
EvictionAction, EvictionAttributesImpl, Serialized Form

Field Summary
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
 
Method Summary
 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.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final EvictionAlgorithm NONE
The canonical EvictionAction that represents no eviction action


LRU_ENTRY

public static final EvictionAlgorithm LRU_ENTRY
An algorithm that considers the number of Entries in the Region before invoking its EvictionAction


LRU_HEAP

public static final EvictionAlgorithm LRU_HEAP
An algorithm that considers the JVM heap size before invoking its EvictionAction


LRU_MEMORY

public static final EvictionAlgorithm LRU_MEMORY
An algorithm that considers the amount of bytes consumed by the Region before invoking its EvictionAction


LIFO_ENTRY

public static final EvictionAlgorithm LIFO_ENTRY
Deprecated. 
An algorithm that considers the number of Entries in the Region before invoking its EvictionAction


LIFO_MEMORY

public static final EvictionAlgorithm LIFO_MEMORY
Deprecated. 
An algorithm that considers the amount of bytes consumed by the Region before invoking its EvictionAction

Method Detail

parseValue

public static EvictionAlgorithm parseValue(int v)
Returns the eviction action the corresponds to the given parameter. Returns null if no action corresponds.

Since:
6.5

parseAction

public static EvictionAlgorithm parseAction(String s)

isLRUEntry

public final boolean isLRUEntry()

isLRUMemory

public final boolean isLRUMemory()

isLRUHeap

public final boolean isLRUHeap()

isLRU

public boolean isLRU()
returns true if this object uses a least-recently-used algorithm


isNone

public final boolean isNone()

GemFire 6.5.1.2

Copyright © 2002-2010 GemStone Systems, Inc. All Rights Reserved.