|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.pageStore.PageWindowManager
public class PageWindowManager
Manages positions and size of serialized pages in the pagemap file.
The pages are stored inside the file in a cyclic way. Newer pages are placed after older ones, until the maximum file size is reached. After that, the next page is stored in the beginning of the file.
| Nested Class Summary | |
|---|---|
static class |
PageWindowManager.PageWindow
Public (read only) version of page window. |
| Constructor Summary | |
|---|---|
PageWindowManager(long maxSize)
Creates a new PageWindowManager. |
|
| Method Summary | |
|---|---|
PageWindowManager.PageWindow |
createPageWindow(int pageId,
int size)
Creates and returns a new page window for given page. |
List<PageWindowManager.PageWindow> |
getLastPageWindows(int count)
Returns last n saved page windows. |
PageWindowManager.PageWindow |
getPageWindow(int pageId)
Returns the page window for given page or null if no window was found. |
int |
getTotalSize()
Returns the size of all saved pages |
void |
removePage(int pageId)
Removes the page window for given page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageWindowManager(long maxSize)
maxSize - maximum page size. After this size is exceeded, the pages will be saved starting
at the beginning of file| Method Detail |
|---|
public PageWindowManager.PageWindow createPageWindow(int pageId,
int size)
pageId - size -
public PageWindowManager.PageWindow getPageWindow(int pageId)
pageId -
public void removePage(int pageId)
pageId - public List<PageWindowManager.PageWindow> getLastPageWindows(int count)
count -
public int getTotalSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||