Interface IBrowserCacheManager
-
public interface IBrowserCacheManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisable()voidenable()longgetBaseUsn()Get the base update sequence number, i.e.longgetCurrentUsn()Get the current update sequence number, i.e.SortedMap<String,Long>getKeyToUsnMapping()Get the mapping of keys to their current update sequence number.longgetUsn(String p_strKey)Get the update sequence number for the given key.longincrementAndGetCurrentUsn()Increment and get the current update sequence number, i.e.voidinvalidate()Invalidate all keys.voidinvalidateKeysByPrefix(String... p_keyPrefixes)Invalidate keys that have one of the given prefixes.booleanisEnabled()Check if the cache manager is enabled.
-
-
-
Method Detail
-
getBaseUsn
long getBaseUsn()
Get the base update sequence number, i.e. the USN that will be returned for keys that are not explicitely managed by this cache.- Returns:
- The base update sequence number.
-
getCurrentUsn
long getCurrentUsn()
Get the current update sequence number, i.e. highest USN that is currently present in this cache.- Returns:
- The base update sequence number.
-
incrementAndGetCurrentUsn
long incrementAndGetCurrentUsn()
Increment and get the current update sequence number, i.e. highest USN that is currently present in this cache.- Returns:
- The base update sequence number.
-
getUsn
long getUsn(String p_strKey)
Get the update sequence number for the given key.- Parameters:
p_strKey- The key.- Returns:
- The update sequence number for the given key.
-
getKeyToUsnMapping
SortedMap<String,Long> getKeyToUsnMapping()
Get the mapping of keys to their current update sequence number.- Returns:
- The mapping.
-
isEnabled
boolean isEnabled()
Check if the cache manager is enabled.- Returns:
trueif the cache manager is enabled, orfalseotherwise.
-
invalidate
void invalidate()
Invalidate all keys.
-
invalidateKeysByPrefix
void invalidateKeysByPrefix(String... p_keyPrefixes)
Invalidate keys that have one of the given prefixes.- Parameters:
p_keyPrefixes- An array of key prefixes.
-
enable
void enable()
-
disable
void disable()
-
-