Package noaa.coastwatch.io.tile
Interface TileCache
- All Superinterfaces:
Map<TileCacheKey,
TilingScheme.Tile>
- All Known Implementing Classes:
LRUTileCache
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
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the total cache size in bytes.int
Gets the total cache size limit in bytes.void
setCacheSizeLimit
(int bytes) Sets the total cache size limit in bytes.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
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.
-