Class WMSCachedTileLoaderJob

    • Constructor Detail

      • WMSCachedTileLoaderJob

        public WMSCachedTileLoaderJob​(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)
        Creates a job - that will download specific tile
        Parameters:
        listener - will be notified, when tile has loaded
        tile - to load
        cache - to use (get/put)
        options - options for tile job
        downloadExecutor - that will execute the download task (if needed)