org.apache.wicket.pageStore.memory
Class PageNumberEvictionStrategy
java.lang.Object
org.apache.wicket.pageStore.memory.PageNumberEvictionStrategy
- All Implemented Interfaces:
- IDataStoreEvictionStrategy
public class PageNumberEvictionStrategy
- extends Object
- implements IDataStoreEvictionStrategy
An eviction strategy which decides whether to evict entries from the in-memory data store
depending on the number of stored paged per session
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageNumberEvictionStrategy
public PageNumberEvictionStrategy(int pagesNumber)
- Construct.
- Parameters:
pagesNumber
- the maximum number of pages the data store can hold
evict
public void evict(org.apache.wicket.pageStore.memory.PageTable pageTable)
- Description copied from interface:
IDataStoreEvictionStrategy
- Called after each
IDataStore.storeData(String, int, byte[])
call.
- Specified by:
evict
in interface IDataStoreEvictionStrategy
- Parameters:
pageTable
- the in-memory data store with all pages- See Also:
IDataStoreEvictionStrategy.evict(org.apache.wicket.pageStore.memory.PageTable)
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.