public class StreetsideCache extends JCSCachedTileLoaderJob<String,BufferedImageCacheEntry>
Modifier and Type | Class and Description |
---|---|
static class |
StreetsideCache.Type
Types of images.
|
Modifier and Type | Field and Description |
---|---|
private String |
id |
private URL |
url |
ABSOLUTE_EXPIRE_TIME_LIMIT, attributes, cacheData, DEFAULT_EXPIRE_TIME, EXPIRE_TIME_SERVER_LIMIT, now, THREAD_LIMIT
Constructor and Description |
---|
StreetsideCache(String id,
StreetsideCache.Type type)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
protected BufferedImageCacheEntry |
createCacheEntry(byte[] content) |
String |
getCacheKey() |
URL |
getUrl() |
protected boolean |
isObjectLoadable() |
cacheAsEmpty, cancelOutstandingTasks, executionFinished, get, getServerKey, handleJobCancellation, isCacheElementValid, isResponseLoadable, parseHeaders, run, setFinishedTask, submit
public StreetsideCache(String id, StreetsideCache.Type type)
id
- The id of the image.type
- The type of image that must be downloaded (THUMBNAIL or
FULL_IMAGE).public String getCacheKey()
protected BufferedImageCacheEntry createCacheEntry(byte[] content)
createCacheEntry
in class JCSCachedTileLoaderJob<String,BufferedImageCacheEntry>
protected boolean isObjectLoadable()
isObjectLoadable
in class JCSCachedTileLoaderJob<String,BufferedImageCacheEntry>