K
- cache key typepublic interface ICachedLoaderJob<K> extends java.lang.Runnable
getUrl()
).Modifier and Type | Method and Description |
---|---|
CacheEntry |
get()
fetches object from cache, or returns null when object is not found
|
K |
getCacheKey()
returns cache entry key
|
java.net.URL |
getUrl()
method to get download URL for Job
|
void |
submit(ICachedLoaderListener listener,
boolean force)
Submit job for background fetch, and listener will be fed with value object
|
K getCacheKey()
java.net.URL getUrl() throws java.io.IOException
java.io.IOException
- when could not determine the URL of the tileCacheEntry get()
void submit(ICachedLoaderListener listener, boolean force) throws java.io.IOException
listener
- cache loader listenerforce
- true if the load should skip all the caches (local & remote)java.io.IOException
- on failure from getUrl() call