Class WMSCachedTileLoaderJob
- java.lang.Object
-
- org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob<java.lang.String,BufferedImageCacheEntry>
-
- org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob
-
- org.openstreetmap.josm.data.imagery.WMSCachedTileLoaderJob
-
- All Implemented Interfaces:
java.lang.Runnable
,org.openstreetmap.gui.jmapviewer.interfaces.TileJob
,ICachedLoaderJob<java.lang.String>
,ICachedLoaderListener
public class WMSCachedTileLoaderJob extends TMSCachedTileLoaderJob
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, tile
-
Fields 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
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCacheKey()
returns cache entry key-
Methods inherited from class org.openstreetmap.josm.data.imagery.TMSCachedTileLoaderJob
cacheAsEmpty, createCacheEntry, detectErrorMessage, getServerKey, getUrl, isObjectLoadable, isResponseLoadable, loadingFinished, parseHeaders, submit, submit
-
Methods inherited from class org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob
cancelOutstandingTasks, executionFinished, get, handleJobCancellation, isCacheElementValid, loadObject, run, setFinishedTask, submit
-
-
-
-
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 loadedtile
- to loadcache
- to use (get/put)options
- options for tile jobdownloadExecutor
- that will execute the download task (if needed)
-
-
Method Detail
-
getCacheKey
public java.lang.String getCacheKey()
Description copied from interface:ICachedLoaderJob
returns cache entry key- Specified by:
getCacheKey
in interfaceICachedLoaderJob<java.lang.String>
- Overrides:
getCacheKey
in classTMSCachedTileLoaderJob
- Returns:
- cache key for tile
-
-