wicket.session.pagemap
Class LeastRecentlyAccessedEvictionStrategy

java.lang.Object
  extended by wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy
All Implemented Interfaces:
java.io.Serializable, 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(PageMap 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(PageMap pageMap)
Specified by:
evict in interface IPageMapEvictionStrategy
Parameters:
pageMap - The page map to evict from
See Also:
IPageMapEvictionStrategy.evict(wicket.PageMap)

toString

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


Copyright © 2004-2007 Wicket developers. All Rights Reserved.