Class CacheAnchor
java.lang.Object
com.semedy.reasoner.edb.persistentstore.CacheAnchor
- All Implemented Interfaces:
CacheUnit
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
free up ressources at the end (CacheManager.clear)getLast()
getNext()
boolean
is this unit releasablevoid
release()
Cache management calls this method to release the cache unit.void
remove()
void
void
pointers in a list for cache managementlong
releases this number of bytesvoid
touch()
touch a cache unit.
-
Constructor Details
-
CacheAnchor
public CacheAnchor()
-
-
Method Details
-
touch
public void touch()Description copied from interface:CacheUnit
touch a cache unit.
this means for cache management that this unit
will be used and has a lower prio to be released -
setNext
Description copied from interface:CacheUnit
pointers in a list for cache management -
getNext
-
setLast
-
getLast
-
release
Description copied from interface:CacheUnit
Cache management calls this method to release the cache unit.- Specified by:
release
in interfaceCacheUnit
- Throws:
IOException
-
isReleasable
public boolean isReleasable()Description copied from interface:CacheUnit
is this unit releasable- Specified by:
isReleasable
in interfaceCacheUnit
- Returns:
-
sizeInBytes
public long sizeInBytes()Description copied from interface:CacheUnit
releases this number of bytes- Specified by:
sizeInBytes
in interfaceCacheUnit
- Returns:
-
remove
public void remove() -
destroy
public void destroy()Description copied from interface:CacheUnit
free up ressources at the end (CacheManager.clear)
-