Interface IAliasCache
- All Superinterfaces:
ICache
,IComponent
,IDBCache
,IInitializable
The Alias key class manages the various aliases
There are three main concepts in aliases:
1) Source is the key identifier That's what this represents. This can be either an IURI or a string
2) Target is the value. This can be either an IURI|IThingID or a string
3) Params are the optional name value pairs to append to the target
- See Also:
-
AliasKey
AliasValue
-
Field Summary
FieldsFields inherited from interface com.webmethods.portal.service.cache.ICache
ID, ISCLUSTERED, MAX_SIZE
Fields inherited from interface com.webmethods.portal.service.cache.caches.IDBCache
INVAL_KEYA, INVAL_KEYB, INVAL_KEYNAME, INVAL_PRIMARY, INVAL_SECONDARY
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new cache key based on a thingIDCreate a new cache key based on a uriCreate a new cache key based on just a stringCreate a new cache key based on a key and a user's id call #releaseKey afterretrieve a list of all availableICacheEntry
slookupKeysForValue
(IAliasValue aliasValue) Give the currentAliasValue
, retrieve a list ofAliasKey
s that point to thatAliasValue
void
reload()
Reload alias cachevoid
removeAlias
(ICacheKey cacheKey) Removes an aliasvoid
sets the meta context(for remote cache lookups)Methods inherited from interface com.webmethods.portal.service.cache.ICache
createKey, createKey, createKey, flush, flushAll, flushAll, getCacheManager, getEntry, getMaxSize, getModified, getName, getReport, getSize, getValue, isClustered, put, refresh, update
Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.service.cache.caches.IDBCache
createKey, invalidateByKey, purgeCache
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
createKey
Create a new cache key based on just a string- Parameters:
aliasKey
-- Returns:
- an
AliasKey
-
createKey
Create a new cache key based on a uri- Parameters:
uri
-- Returns:
- an
AliasKey
-
createKey
Create a new cache key based on a thingID- Parameters:
thingID
-- Returns:
- an
AliasKey
-
createKey
Create a new cache key based on a key and a user's id call #releaseKey after- Parameters:
key
-userID
-- Returns:
- an
AliasKey
-
removeAlias
Removes an alias- Parameters:
cacheKey
-- Throws:
CacheException
-
lookupKeys
Collection<ICacheEntry> lookupKeys()retrieve a list of all availableICacheEntry
s- Returns:
-
lookupKeysForValue
Give the currentAliasValue
, retrieve a list ofAliasKey
s that point to thatAliasValue
- Parameters:
aliasValue
-- Returns:
-
setMetaContext
sets the meta context(for remote cache lookups)- Parameters:
mc
-
-
reload
void reload()Reload alias cache
-