Interface CacheEntry


public interface CacheEntry
Common interface for items stored in a StorageLocation
  • Method Summary

    Modifier and Type
    Method
    Description
    Unique identifier for the cache entry
    long
    Size in bytes of the cache entry
    boolean
     
    void
    Materializes the cache entry into the assigned StorageLocation.
    void
    Removes the physical artifacts of a cache entry from the location it is currently mounted
  • Method Details

    • getId

      Unique identifier for the cache entry
    • getSize

      long getSize()
      Size in bytes of the cache entry
    • isMounted

      boolean isMounted()
    • mount

      void mount(StorageLocation location) throws IOException, SegmentLoadingException
      Materializes the cache entry into the assigned StorageLocation. If a cache entry is already mounted in the location, calling this method should be a no-op. It is an error condition to call this method if the cache entry is already mounted in a different location.
      Throws:
      IOException
      SegmentLoadingException
    • unmount

      void unmount()
      Removes the physical artifacts of a cache entry from the location it is currently mounted