public class WMSCachedTileLoader extends TMSCachedTileLoader
cache, connectTimeout, headers, HOST_LIMIT, listener, readTimeout, THREAD_LIMIT
Constructor and Description |
---|
WMSCachedTileLoader(TileLoaderListener listener,
org.apache.commons.jcs.access.behavior.ICacheAccess<String,BufferedImageCacheEntry> cache,
int connectTimeout,
int readTimeout,
Map<String,String> headers)
Creates a TileLoader with separate WMS downloader.
|
Modifier and Type | Method and Description |
---|---|
TileJob |
createTileLoaderJob(Tile tile)
A typical implementation of this function should create and return a
new
TileJob instance that performs the load action. |
cancelOutstandingTasks, clearCache, getDownloadExecutor, getNewThreadPoolExecutor, getNewThreadPoolExecutor, getStats, setDownloadExecutor
public WMSCachedTileLoader(TileLoaderListener listener, org.apache.commons.jcs.access.behavior.ICacheAccess<String,BufferedImageCacheEntry> cache, int connectTimeout, int readTimeout, Map<String,String> headers) throws IOException
listener
- that will be notified when tile is loadedcache
- referenceconnectTimeout
- to tile sourcereadTimeout
- from tile sourceheaders
- to be sent with requestsIOException
- when there is a problem creating cache repositorypublic TileJob createTileLoaderJob(Tile tile)
TileLoader
TileJob
instance that performs the load action.createTileLoaderJob
in interface TileLoader
createTileLoaderJob
in class TMSCachedTileLoader
tile
- the tile to be loadedTileJob
implementation that performs the desired load
action.