public class WMSCachedTileLoaderJob extends TMSCachedTileLoaderJob
ICachedLoaderListener.LoadResult
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,
int connectTimeout,
int readTimeout,
java.util.Map<java.lang.String,java.lang.String> headers,
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, int connectTimeout, int readTimeout, java.util.Map<java.lang.String,java.lang.String> headers, java.util.concurrent.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 java.lang.String getCacheKey()
ICachedLoaderJob
getCacheKey
in interface ICachedLoaderJob<java.lang.String>
getCacheKey
in class TMSCachedTileLoaderJob