public interface IAliasCache extends IDBCache
com.webmethods.portal.service.cache.impl.AliasKey
,
com.webmethods.portal.service.cache.impl.AliasValue
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
INVAL_KEYA, INVAL_KEYB, INVAL_KEYNAME, INVAL_PRIMARY, INVAL_SECONDARY
ID, ISCLUSTERED, MAX_SIZE
Modifier and Type | Method and Description |
---|---|
ICacheKey |
createKey(IThingID thingID)
Create a new cache key based on a thingID
|
ICacheKey |
createKey(IURI uri)
Create a new cache key based on a uri
|
ICacheKey |
createKey(String aliasKey)
Create a new cache key based on just a string
|
ICacheKey |
createKey(String key,
IThingID userID)
Create a new cache key based on a key and a user's id
call #releaseKey after
|
Collection<ICacheEntry> |
lookupKeys()
retrieve a list of all available
ICacheEntry s |
Collection<IAliasKey> |
lookupKeysForValue(IAliasValue aliasValue)
Give the current
com.webmethods.portal.service.cache.impl.AliasValue , retrieve a list of com.webmethods.portal.service.cache.impl.AliasKey s
that point to that com.webmethods.portal.service.cache.impl.AliasValue |
void |
reload()
Reload alias cache
|
void |
removeAlias(ICacheKey cacheKey)
Removes an alias
|
void |
setMetaContext(IMetaContext mc)
sets the meta context(for remote cache lookups)
|
createKey, invalidateByKey, purgeCache
createKey, createKey, createKey, flush, flushAll, flushAll, getCacheManager, getEntry, getMaxSize, getModified, getName, getReport, getSize, getValue, isClustered, put, refresh, update
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
static final String NAME
ICacheKey createKey(String aliasKey)
aliasKey
- com.webmethods.portal.service.cache.impl.AliasKey
ICacheKey createKey(IURI uri)
uri
- com.webmethods.portal.service.cache.impl.AliasKey
ICacheKey createKey(IThingID thingID)
thingID
- com.webmethods.portal.service.cache.impl.AliasKey
ICacheKey createKey(String key, IThingID userID)
key
- userID
- com.webmethods.portal.service.cache.impl.AliasKey
void removeAlias(ICacheKey cacheKey) throws CacheException
cacheKey
- CacheException
Collection<ICacheEntry> lookupKeys()
ICacheEntry
sCollection<IAliasKey> lookupKeysForValue(IAliasValue aliasValue)
com.webmethods.portal.service.cache.impl.AliasValue
, retrieve a list of com.webmethods.portal.service.cache.impl.AliasKey
s
that point to that com.webmethods.portal.service.cache.impl.AliasValue
aliasValue
- void setMetaContext(IMetaContext mc)
mc
- void reload()