org.apache.wicket.pageStore.memory
Class MemorySizeEvictionStrategy
java.lang.Object
org.apache.wicket.pageStore.memory.MemorySizeEvictionStrategy
- All Implemented Interfaces:
- DataStoreEvictionStrategy
public class MemorySizeEvictionStrategy
- extends Object
- implements DataStoreEvictionStrategy
An eviction strategy that keeps the data store size up to configured bytes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemorySizeEvictionStrategy
public MemorySizeEvictionStrategy(Bytes maxBytes)
- Construct.
- Parameters:
maxBytes
- the maximum size of the data store
evict
public void evict(org.apache.wicket.pageStore.memory.PageTable pageTable)
- Description copied from interface:
DataStoreEvictionStrategy
- Called after each
IDataStore.storeData(String, int, byte[])
call.
- Specified by:
evict
in interface DataStoreEvictionStrategy
- Parameters:
pageTable
- the in-memory data store with all pages- See Also:
DataStoreEvictionStrategy.evict(org.apache.wicket.pageStore.memory.PageTable)
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.