public class WMSCachedTileLoaderJob extends TMSCachedTileLoaderJob
ICachedLoaderListener.LoadResultABSOLUTE_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, submitcancelOutstandingTasks, executionFinished, get, handleJobCancellation, isCacheElementValid, run, setFinishedTask, submitpublic 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()
ICachedLoaderJobgetCacheKey in interface ICachedLoaderJob<String>getCacheKey in class TMSCachedTileLoaderJob