Package org.apache.wicket.pageStore
Class DiskPageStore.DiskData
java.lang.Object
org.apache.wicket.pageStore.DiskPageStore.DiskData
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DiskPageStore
Data held on disk.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
DiskData
(DiskPageStore pageStore, String sessionIdentifier) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
byte[]
loadData
(PageWindowManager.FileWindow window) Loads the part of pagemap file specified by the given PageWindow.byte[]
loadPage
(int id) Loads the specified page data.void
removeData
(int pageId) Removes the page from disk.void
Saves the serialized page to appropriate file.long
size()
void
unbind()
Deletes all files for this session.
-
Constructor Details
-
DiskData
-
-
Method Details
-
size
-
getManager
-
getKey
- Returns:
- session id
-
savePage
Saves the serialized page to appropriate file.- Parameters:
pageId
-pageType
-data
-
-
removeData
Removes the page from disk.- Parameters:
pageId
-
-
loadData
Loads the part of pagemap file specified by the given PageWindow.- Parameters:
window
-- Returns:
- serialized page data
-
loadPage
Loads the specified page data.- Parameters:
id
-- Returns:
- page data or null if the page is no longer in pagemap file
-
unbind
Deletes all files for this session.
-