public interface TileCache extends java.util.Map<TileCacheKey,TilingScheme.Tile>
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.Modifier and Type | Method and Description |
---|---|
int |
getCacheSize()
Gets the total cache size in bytes.
|
int |
getCacheSizeLimit()
Gets the total cache size limit in bytes.
|
void |
setCacheSizeLimit(int bytes)
Sets the total cache size limit in bytes.
|
void setCacheSizeLimit(int bytes)
bytes
- the number of bytes allowed in the cache. The cache
must delete tiles if adding a tile would go over this limit.int getCacheSizeLimit()
int getCacheSize()