IDataCacheObject
Description
Base interface for source data objects that can be cached by a DataCache object.
Public / Methods
CacheReadPage
Reads data from this source data object and stores it in the given cache page.
Before this method is called, the DataCache releases the current lock(see IBeginEnd.End). After this method has returned, the lock is reacquired (see IBeginEnd.Begin). Access to the cache page at cacheIndex in is guaranteed to the thread-safe.
- IOException
-
If an I/O error has occurred while loading the cache page.
CacheRecyclePage
Checks the given cache page can be reused by this source data object.
Iff the cache page can be reused (i.e. the method returns true
), the cache page content may be modified by this method.
CacheWritePage
A dirty cache page must be written to the source data object.
Before this method is called, the DataCache releases the current lock(see IBeginEnd.End). After this method has returned, the lock is reacquired (see IBeginEnd.Begin). Access to the cache page at cacheIndex in is guaranteed to the thread-safe.
- IOException
-
If an I/O error has occurred while writing the cache page.