Class TMSCachedTileLoaderJob

    • Field Detail

      • MAXIMUM_EXPIRES

        public static final LongProperty MAXIMUM_EXPIRES
        General maximum expires for tiles. Might be overridden by imagery settings
      • MINIMUM_EXPIRES

        public static final LongProperty MINIMUM_EXPIRES
        General minimum expires for tiles. Might be overridden by imagery settings
      • CDATA_PATTERN

        static final java.util.regex.Pattern CDATA_PATTERN
      • JSON_PATTERN

        static final java.util.regex.Pattern JSON_PATTERN
      • tile

        protected final org.openstreetmap.gui.jmapviewer.Tile tile
      • url

        private volatile java.net.URL url
      • inProgress

        private static final java.util.concurrent.ConcurrentMap<java.lang.String,​java.util.Set<org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener>> inProgress
    • Constructor Detail

      • TMSCachedTileLoaderJob

        public TMSCachedTileLoaderJob​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener,
                                      org.openstreetmap.gui.jmapviewer.Tile tile,
                                      org.apache.commons.jcs3.access.behavior.ICacheAccess<java.lang.String,​BufferedImageCacheEntry> cache,
                                      TileJobOptions options,
                                      java.util.concurrent.ThreadPoolExecutor downloadExecutor)
        Constructor for creating a job, to get a specific tile from cache
        Parameters:
        listener - Tile loader listener
        tile - to be fetched from cache
        cache - object
        options - for job (such as http headers, timeouts etc.)
        downloadExecutor - that will be executing the jobs