The BasicRasterServerCache is an implementation of the memory cache that is specific to store maximum
possible cacheable items, until the heap size allows. Once the memory limit is hit, it will drop ALL cached items.
Also, BasicRasterServerCache creates a pruner thread that removes all cached items which were not used for 20 seconds
or more. The least recent use timeout is configurable via the setLeastRecentUseTimeout() method. In
addition, the BasicRasterServerCache allocates 100MB memory and keeps only a phantom reference to the
allocated 100M memory. Once any part of the application needs more memory the phantom referenced memory will be
immediately released and the phantom reference will be added to the internal reference queue, which is monitored by
an internal MemoryMonitorThread. Once the phantom reference is added to the reference queue, the entire
cached content will be released. This approach allows to use almost entire available heap memory to cache rasters and
release memory when more memory is needed to the application itself.
Nested Class Summary
Nested classes/interfaces inherited from class gov.nasa.worldwind.cache.BasicMemoryCache