Class CacheAnchor
java.lang.Object
com.semedy.reasoner.edb.persistentstore.CacheAnchor
- All Implemented Interfaces:
CacheUnit
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()free up ressources at the end (CacheManager.clear)getLast()getNext()booleanis this unit releasablevoidrelease()Cache management calls this method to release the cache unit.voidremove()voidvoidpointers in a list for cache managementlongreleases this number of bytesvoidtouch()touch a cache unit.
-
Constructor Details
-
CacheAnchor
public CacheAnchor()
-
-
Method Details
-
touch
public void touch()Description copied from interface:CacheUnittouch 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:CacheUnitpointers in a list for cache management -
getNext
-
setLast
-
getLast
-
release
Description copied from interface:CacheUnitCache management calls this method to release the cache unit.- Specified by:
releasein interfaceCacheUnit- Throws:
IOException
-
isReleasable
public boolean isReleasable()Description copied from interface:CacheUnitis this unit releasable- Specified by:
isReleasablein interfaceCacheUnit- Returns:
-
sizeInBytes
public long sizeInBytes()Description copied from interface:CacheUnitreleases this number of bytes- Specified by:
sizeInBytesin interfaceCacheUnit- Returns:
-
remove
public void remove() -
destroy
public void destroy()Description copied from interface:CacheUnitfree up ressources at the end (CacheManager.clear)
-