public class WMSCachedTileLoaderJob extends TMSCachedTileLoaderJob
ICachedLoaderListener.LoadResult
MAXIMUM_EXPIRES, MINIMUM_EXPIRES, SERVICE_EXCEPTION_PATTERN, tile
ABSOLUTE_EXPIRE_TIME_LIMIT, attributes, cacheData, DEFAULT_EXPIRE_TIME, EXPIRE_TIME_SERVER_LIMIT, now, THREAD_LIMIT
Constructor and Description |
---|
WMSCachedTileLoaderJob(TileLoaderListener listener,
Tile tile,
org.apache.commons.jcs.access.behavior.ICacheAccess<java.lang.String,BufferedImageCacheEntry> cache,
TileJobOptions options,
java.util.concurrent.ThreadPoolExecutor downloadExecutor)
Creates a job - that will download specific tile
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheKey()
returns cache entry key
|
cacheAsEmpty, createCacheEntry, getServerKey, getUrl, isObjectLoadable, isResponseLoadable, loadingFinished, parseHeaders, submit, submit
cancelOutstandingTasks, executionFinished, get, handleJobCancellation, isCacheElementValid, run, setFinishedTask, submit
public WMSCachedTileLoaderJob(TileLoaderListener listener, Tile tile, org.apache.commons.jcs.access.behavior.ICacheAccess<java.lang.String,BufferedImageCacheEntry> cache, TileJobOptions options, java.util.concurrent.ThreadPoolExecutor downloadExecutor)
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)public java.lang.String getCacheKey()
ICachedLoaderJob
getCacheKey
in interface ICachedLoaderJob<java.lang.String>
getCacheKey
in class TMSCachedTileLoaderJob