Class JCSCachedTileLoaderJob<K,​V extends CacheEntry>

  • Type Parameters:
    K - cache entry key type
    V - cache value type
    All Implemented Interfaces:
    Runnable, ICachedLoaderJob<K>
    Direct Known Subclasses:
    TMSCachedTileLoaderJob

    public abstract class JCSCachedTileLoaderJob<K,​V extends CacheEntry>
    extends Object
    implements ICachedLoaderJob<K>
    Generic loader for HTTP based tiles. Uses custom attribute, to check, if entry has expired according to HTTP headers sent with tile. If so, it tries to verify using Etags or If-Modified-Since / Last-Modified. If the tile is not valid, it will try to download it from remote service and put it to cache. If remote server will fail it will try to use stale entry. This class will keep only one Job running for specified tile. All others will just finish, but listeners will be gathered and notified, once download job will be finished
    Since:
    8168