public class MemorySizeEvictionStrategy extends Object implements IDataStoreEvictionStrategy
Constructor and Description |
---|
MemorySizeEvictionStrategy(Bytes maxBytes)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
evict(PageTable pageTable)
Called after each
IDataStore.storeData(String, int, byte[]) call. |
public MemorySizeEvictionStrategy(Bytes maxBytes)
maxBytes
- the maximum size of the data storepublic void evict(PageTable pageTable)
IDataStoreEvictionStrategy
IDataStore.storeData(String, int, byte[])
call.evict
in interface IDataStoreEvictionStrategy
pageTable
- the in-memory data store with all pagesIDataStoreEvictionStrategy.evict(org.apache.wicket.pageStore.memory.PageTable)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.