CacheObject
The base object for all cached objects.
| Methods |
| boolean |
canRemove()
Check if the object can be removed from the cache.
|
| boolean |
canRemove()
Check if the object can be removed from the cache.
For example pinned objects can not be removed.
Returns:
true if it can be removed
|
| int |
compareTo(CacheObject other)
|
| int |
compareTo(CacheObject other)
|
| int |
getMemory()
Get the estimated used memory.
|
| int |
getMemory()
Get the estimated used memory.
Returns:
number of words (one word is 4 bytes)
|
| int |
getPos()
|
| int |
getPos()
|
| boolean |
isChanged()
Check if this cache object has been changed and thus needs to be written
back to the storage.
|
| boolean |
isChanged()
Check if this cache object has been changed and thus needs to be written
back to the storage.
Returns:
if it has been changed
|
| boolean |
isStream()
|
| boolean |
isStream()
|
| void |
setChanged(boolean b)
|
| void |
setChanged(boolean b)
|
| void |
setPos(int pos)
|
| void |
setPos(int pos)
|