Class CacheAnchor

java.lang.Object
com.semedy.reasoner.edb.persistentstore.CacheAnchor
All Implemented Interfaces:
CacheUnit

public class CacheAnchor extends Object implements CacheUnit
Author:
angele
  • 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
      Specified by:
      touch in interface CacheUnit
    • setNext

      public void setNext(CacheUnit next)
      Description copied from interface: CacheUnit
      pointers in a list for cache management
      Specified by:
      setNext in interface CacheUnit
    • getNext

      public CacheUnit getNext()
      Specified by:
      getNext in interface CacheUnit
    • setLast

      public void setLast(CacheUnit last)
      Specified by:
      setLast in interface CacheUnit
    • getLast

      public CacheUnit getLast()
      Specified by:
      getLast in interface CacheUnit
    • release

      public void release() throws IOException
      Description copied from interface: CacheUnit
      Cache management calls this method to release the cache unit.
      Specified by:
      release in interface CacheUnit
      Throws:
      IOException
    • isReleasable

      public boolean isReleasable()
      Description copied from interface: CacheUnit
      is this unit releasable
      Specified by:
      isReleasable in interface CacheUnit
      Returns:
    • sizeInBytes

      public long sizeInBytes()
      Description copied from interface: CacheUnit
      releases this number of bytes
      Specified by:
      sizeInBytes in interface CacheUnit
      Returns:
    • remove

      public void remove()
    • destroy

      public void destroy()
      Description copied from interface: CacheUnit
      free up ressources at the end (CacheManager.clear)
      Specified by:
      destroy in interface CacheUnit