public interface CacheDataBacking
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the backing.
|
DataStore |
getDataStore()
Returns the underlying DataStore, used for serialization.
|
MnodeStore |
getMnodeStore() |
long |
getStartupLastUpdateTime()
Returns the last update time on server startup.
|
long |
getStartupLastUpdateTime(HashKey cacheKey)
Returns the last update time on server startup.
|
java.util.ArrayList<CacheData> |
getUpdates(HashKey cacheKey,
long accessTime,
int offset)
Returns a set of entries since an access time.
|
java.util.ArrayList<CacheData> |
getUpdates(long accessTime,
int offset)
Returns a set of entries since an access time.
|
MnodeEntry |
insertLocalValue(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
boolean |
isDataAvailable(long valueDataId,
long valueDataTime) |
java.sql.Blob |
loadBlob(long valueDataId,
long valueDataTime) |
boolean |
loadData(long valueDataId,
long valueDataTime,
WriteStream os) |
MnodeEntry |
loadLocalEntryValue(HashKey key) |
boolean |
putLocalValue(MnodeEntry mnodeValue,
HashKey key,
HashKey cacheKey,
MnodeEntry oldEntryValue,
MnodeUpdate mnodeUpdate)
Sets a cache entry
|
boolean |
removeData(long valueDataId,
long valueDataTime) |
DataStore.DataItem |
saveData(java.io.InputStream mIn,
int length) |
DataStore.DataItem |
saveData(StreamSource source,
int length) |
MnodeEntry |
saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
void |
start() |
DataStore getDataStore()
MnodeStore getMnodeStore()
void start()
MnodeEntry loadLocalEntryValue(HashKey key)
MnodeEntry insertLocalValue(HashKey key, HashKey cacheKey, MnodeEntry mnodeValue, MnodeEntry oldMnodeValue)
MnodeEntry saveLocalUpdateTime(HashKey keyHash, MnodeEntry mnodeValue, MnodeEntry oldMnodeValue)
boolean putLocalValue(MnodeEntry mnodeValue, HashKey key, HashKey cacheKey, MnodeEntry oldEntryValue, MnodeUpdate mnodeUpdate)
boolean loadData(long valueDataId, long valueDataTime, WriteStream os) throws java.io.IOException
java.io.IOException
java.sql.Blob loadBlob(long valueDataId, long valueDataTime)
DataStore.DataItem saveData(java.io.InputStream mIn, int length) throws java.io.IOException
java.io.IOException
DataStore.DataItem saveData(StreamSource source, int length)
boolean removeData(long valueDataId, long valueDataTime)
boolean isDataAvailable(long valueDataId, long valueDataTime)
long getStartupLastUpdateTime()
long getStartupLastUpdateTime(HashKey cacheKey)
java.util.ArrayList<CacheData> getUpdates(long accessTime, int offset)
java.util.ArrayList<CacheData> getUpdates(HashKey cacheKey, long accessTime, int offset)
void close()