net.sf.jomic.tools
Interface CacheInfo

All Known Implementing Classes:
ArchiveCache, ComicCache.TitleImageCache, ImageCache

public interface CacheInfo

Interface to describe how much of a cache is in use.

Author:
Thomas Aglassinger

Method Summary
 int getEntryCount()
          Number of cache entries.
 long getMaxSize()
          Number of bytes the cache should use at the maximum.
 long getUsedSize()
          Number of bytes currently in use by cache.
 

Method Detail

getUsedSize

long getUsedSize()
Number of bytes currently in use by cache. This can be more than getMaxSize() in case there is only one entry in the cache bigger than this, or (in case entry size can not be estimated before adding them) temporarely when adding an entry before removing an old one.


getMaxSize

long getMaxSize()
Number of bytes the cache should use at the maximum.


getEntryCount

int getEntryCount()
Number of cache entries.