Interface TileCache

All Superinterfaces:
Map<TileCacheKey,TilingScheme.Tile>
All Known Implementing Classes:
LRUTileCache

public interface TileCache extends Map<TileCacheKey,TilingScheme.Tile>
A TileCache object stores a set of TilingScheme.Tile objects and allows for their retrieval. A tile cache may be used to speed up access to frequently-used data tiles.
Since:
3.3.1
Author:
Peter Hollemans
  • Method Details

    • setCacheSizeLimit

      void setCacheSizeLimit(int bytes)
      Sets the total cache size limit in bytes.
      Parameters:
      bytes - the number of bytes allowed in the cache. The cache must delete tiles if adding a tile would go over this limit.
    • getCacheSizeLimit

      int getCacheSizeLimit()
      Gets the total cache size limit in bytes.
      Returns:
      the number of bytes allowed in the cache. The cache must delete tiles if adding a tile would go over this limit.
    • getCacheSize

      int getCacheSize()
      Gets the total cache size in bytes.
      Returns:
      the number of bytes currently in the cache.