Class WMSCachedTileLoaderJob
java.lang.Object
org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob<String,BufferedImageCacheEntry>
org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob
org.openstreetmap.josm.data.imagery.WMSCachedTileLoaderJob
- All Implemented Interfaces:
Runnable,org.openstreetmap.gui.jmapviewer.interfaces.TileJob,ICachedLoaderJob<String>,ICachedLoaderListener
Separate class to handle WMS jobs, as it needs to react differently to HTTP response codes from WMS server
- Since:
- 8526
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.cache.ICachedLoaderListener
ICachedLoaderListener.LoadResult -
Field Summary
Fields inherited from class org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob
CDATA_PATTERN, JSON_PATTERN, MAXIMUM_EXPIRES, MINIMUM_EXPIRES, SERVICE_EXCEPTION_PATTERN, tileFields inherited from class org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob
ABSOLUTE_EXPIRE_TIME_LIMIT, attributes, cache, cacheData, DEFAULT_EXPIRE_TIME, EXPIRE_TIME_SERVER_LIMIT, now, THREAD_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionWMSCachedTileLoaderJob(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, org.openstreetmap.gui.jmapviewer.Tile tile, org.apache.commons.jcs3.access.behavior.ICacheAccess<String, BufferedImageCacheEntry> cache, TileJobOptions options, ThreadPoolExecutor downloadExecutor) Creates a job - that will download specific tile -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob
cacheAsEmpty, createCacheEntry, detectErrorMessage, getServerKey, getUrl, isObjectLoadable, isResponseLoadable, loadingFinished, parseHeaders, submit, submitMethods inherited from class org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob
cancelOutstandingTasks, executionFinished, get, handleJobCancellation, isCacheElementValid, loadObject, run, setFinishedTask, submit
-
Constructor Details
-
WMSCachedTileLoaderJob
public WMSCachedTileLoaderJob(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, org.openstreetmap.gui.jmapviewer.Tile tile, org.apache.commons.jcs3.access.behavior.ICacheAccess<String, BufferedImageCacheEntry> cache, TileJobOptions options, ThreadPoolExecutor downloadExecutor) Creates a job - that will download specific tile- Parameters:
listener- will be notified, when tile has loadedtile- to loadcache- to use (get/put)options- options for tile jobdownloadExecutor- that will execute the download task (if needed)
-
-
Method Details
-
getCacheKey
Description copied from interface:ICachedLoaderJobreturns cache entry key- Specified by:
getCacheKeyin interfaceICachedLoaderJob<String>- Overrides:
getCacheKeyin classTMSCachedTileLoaderJob- Returns:
- cache key for tile
-