
public class WMSCache extends Cache<BoundingBox,CacheImage,BufferedImage>
| Constructor and Description |
|---|
WMSCache(Map<BoundingBox,BufferedImage> cacheData,
String cacheDir,
int maxSize,
int secondsToLive)
constructor met pad voor de cache en initiƫle cache data.
|
WMSCache(String cacheDir,
int maxSize)
constructor met pad voor de cache.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheDir()
Geeft het pad van de cache.
|
BufferedImage |
getImage(BoundingBox bbox)
Haalt een opgeslagen afbeelding op.
|
void |
put(BoundingBox bbox,
BufferedImage cacheValue,
long secondsToLive)
plaatst de image in de cache met de sleutel.
|
void |
remove(BoundingBox bbox)
Verwijder het gevraagde object uit de cache.
|
public WMSCache(Map<BoundingBox,BufferedImage> cacheData, String cacheDir, int maxSize, int secondsToLive) throws IOException
cacheData - cache datacacheDir - pad voor de cachemaxSize - the max sizesecondsToLive - the seconds to liveIOException - als de gevraagde directory niet schrijfbaar is.WMSCache(String, int)public WMSCache(String cacheDir, int maxSize) throws IOException
cacheDir - pad voor de cachemaxSize - the max sizeIOException - als de gevraagde directory niet schrijfbaar is.public String getCacheDir()
public void put(BoundingBox bbox, BufferedImage cacheValue, long secondsToLive)
bbox - de sleutelcacheValue - het object dat wordt opgeslagen in de cachesecondsToLive - the seconds to liveCaching.put(Object,
Cachable)public void remove(BoundingBox bbox)
remove in interface Caching<BoundingBox,CacheImage,BufferedImage>remove in class Cache<BoundingBox,CacheImage,BufferedImage>bbox - de sleutelpublic BufferedImage getImage(BoundingBox bbox)
bbox - de sleutelCopyright © 2012–2014 Ministerie EZ. All rights reserved.