org.apache.wicket.session.pagemap
Class LeastRecentlyAccessedEvictionStrategy
java.lang.Object
org.apache.wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy
- All Implemented Interfaces:
- Serializable, IClusterable, IPageMapEvictionStrategy
public class LeastRecentlyAccessedEvictionStrategy
- extends 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
LeastRecentlyAccessedEvictionStrategy
public LeastRecentlyAccessedEvictionStrategy(int maxVersions)
- Constructor.
- Parameters:
maxVersions
- Maximum number of page versions before eviction occurs
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 String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.