org.apache.wicket.session.pagemap
Class LeastRecentlyAccessedEvictionStrategy

java.lang.Object
  extended by org.apache.wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy
All Implemented Interfaces:
java.io.Serializable, IClusterable, IPageMapEvictionStrategy

public class LeastRecentlyAccessedEvictionStrategy
extends java.lang.Object
implements IPageMapEvictionStrategy

A simple eviction strategy that evicts the least recently accessed page version from the given page map.

Author:
Jonathan Locke
See Also:
Serialized Form

Constructor Summary
LeastRecentlyAccessedEvictionStrategy(int maxVersions)
          Constructor.
 
Method Summary
 void evict(IPageMap pageMap)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeastRecentlyAccessedEvictionStrategy

public LeastRecentlyAccessedEvictionStrategy(int maxVersions)
Constructor.

Parameters:
maxVersions - Maximum number of page versions before eviction occurs
Method Detail

evict

public void evict(IPageMap pageMap)
Specified by:
evict in interface IPageMapEvictionStrategy
Parameters:
pageMap - The page map to evict from
See Also:
IPageMapEvictionStrategy.evict(org.apache.wicket.IPageMap)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.