org.jboss.cache.eviction
Class NullEvictionAlgorithm

java.lang.Object
  extended by org.jboss.cache.eviction.NullEvictionAlgorithm
All Implemented Interfaces:
EvictionAlgorithm

public class NullEvictionAlgorithm
extends Object
implements EvictionAlgorithm

Algorithm for NullEvictionPolicy.

Author:
Brian Stansberry

Field Summary
static NullEvictionAlgorithm INSTANCE
          Singleton instance of this class.
 
Method Summary
 EvictionQueue getEvictionQueue()
          Returns NullEvictionQueue.INSTANCE.
 void process(Region region)
          No-op
 void resetEvictionQueue(Region region)
          No-op
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NullEvictionAlgorithm INSTANCE
Singleton instance of this class.

Method Detail

getEvictionQueue

public EvictionQueue getEvictionQueue()
Returns NullEvictionQueue.INSTANCE.

Specified by:
getEvictionQueue in interface EvictionAlgorithm
Returns:
the EvictionQueue implementation.

process

public void process(Region region)
             throws EvictionException
No-op

Specified by:
process in interface EvictionAlgorithm
Parameters:
region - MarshRegion that this algorithm will operate on.
Throws:
EvictionException

resetEvictionQueue

public void resetEvictionQueue(Region region)
No-op

Specified by:
resetEvictionQueue in interface EvictionAlgorithm
Parameters:
region - MarshRegion that this algorithm will operate on.


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.