public class WMSCache extends Object
| Constructor and Description |
|---|
WMSCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
empty()
empty the WMSCache
|
static WMSTile |
get(String query,
String colourmode,
PointType pointType)
Retrieve search parameter object
|
static String |
getKey(String query,
String colourmode,
PointType pointType)
cache key built from query, colourmode and point type.
|
static long |
getLargestCacheableSize() |
static long |
getMaxCacheSize() |
static long |
getMinCacheSize() |
static boolean |
isCachable(WMSTile wco,
int occurrenceCount,
boolean hasCounts)
determine if a WMSTile created with the given characteristics
will be too large for the cache.
|
static boolean |
isEnabled()
WMSCache is enabled
|
static boolean |
isFull()
Test if cache is full.
|
static boolean |
put(String q,
String colourMode,
PointType pointType,
WMSTile wco)
Store search params and return key.
|
static void |
remove(String q,
String colourMode,
PointType pointType)
remove a specific cache entry.
|
static void |
setLargestCacheableSize(long sizeInBytes) |
static void |
setMaxCacheSize(long sizeInBytes) |
static void |
setMinCacheSize(long sizeInBytes) |
public static boolean put(String q, String colourMode, PointType pointType, WMSTile wco)
q - Search url params to store as String.colourMode - to store as StringpointType - resolution of data to store as PointTypewco - data to store as WMSTilepublic static String getKey(String query, String colourmode, PointType pointType)
query - colourmode - pointType - public static WMSTile get(String query, String colourmode, PointType pointType)
query - Search url params to store as String.colourmode - colourmode as StringpointType - data resolution as PointTypepublic static boolean isEnabled()
public static void empty()
public static void remove(String q, String colourMode, PointType pointType)
q - Search url params to store as String.colourMode - to store as StringpointType - resolution of data to store as PointTypepublic static boolean isCachable(WMSTile wco, int occurrenceCount, boolean hasCounts)
wco - occurrenceCount - hasCounts - public static boolean isFull()
public static void setMaxCacheSize(long sizeInBytes)
public static long getMaxCacheSize()
public static void setMinCacheSize(long sizeInBytes)
public static long getMinCacheSize()
public static void setLargestCacheableSize(long sizeInBytes)
public static long getLargestCacheableSize()
Copyright © 2014. All rights reserved.