public class WMSCachedTileLoaderJob extends TMSCachedTileLoaderJob
ICachedLoaderListener.LoadResult
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<String,BufferedImageCacheEntry> cache,
int connectTimeout,
int readTimeout,
Map<String,String> headers,
ThreadPoolExecutor downloadExecutor)
Creates a job - that will download specific tile
|
Modifier and Type | Method and Description |
---|---|
String |
getCacheKey()
returns cache entry key
|
cacheAsEmpty, createCacheEntry, getCachedTile, getServerKey, getTile, 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<String,BufferedImageCacheEntry> cache, int connectTimeout, int readTimeout, Map<String,String> headers, ThreadPoolExecutor downloadExecutor)
listener
- will be notified, when tile has loadedtile
- to loadcache
- to use (get/put)connectTimeout
- to tile sourcereadTimeout
- to tile sourceheaders
- to be sent with requestdownloadExecutor
- that will execute the download task (if needed)public String getCacheKey()
ICachedLoaderJob
getCacheKey
in interface ICachedLoaderJob<String>
getCacheKey
in class TMSCachedTileLoaderJob