Package org.apache.wicket.pageStore
Class InMemoryPageStore.SizeLimitedData
- java.lang.Object
-
- org.apache.wicket.pageStore.InMemoryPageStore.MemoryData
-
- org.apache.wicket.pageStore.InMemoryPageStore.SizeLimitedData
-
- All Implemented Interfaces:
Iterable<IManageablePage>
,InMemoryPageStore.IMemoryData
- Enclosing class:
- InMemoryPageStore
protected static class InMemoryPageStore.SizeLimitedData extends InMemoryPageStore.MemoryData
Limit pages by size.
-
-
Constructor Summary
Constructors Constructor Description SizeLimitedData(Bytes maxBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(IManageablePage page)
Add a page.IManageablePage
remove(int pageId)
Remove a page.-
Methods inherited from class org.apache.wicket.pageStore.InMemoryPageStore.MemoryData
get, iterator, removeOldest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SizeLimitedData
public SizeLimitedData(Bytes maxBytes)
-
-
Method Detail
-
add
public void add(IManageablePage page)
Description copied from interface:InMemoryPageStore.IMemoryData
Add a page.- Specified by:
add
in interfaceInMemoryPageStore.IMemoryData
- Overrides:
add
in classInMemoryPageStore.MemoryData
-
remove
public IManageablePage remove(int pageId)
Description copied from interface:InMemoryPageStore.IMemoryData
Remove a page.- Specified by:
remove
in interfaceInMemoryPageStore.IMemoryData
- Overrides:
remove
in classInMemoryPageStore.MemoryData
- Returns:
-
-