Interface IDependentCache
- All Superinterfaces:
ICache
,IComponent
,IDBCache
,IInitializable
Title:
Description:
Copyright: Copyright (c) 2000
Company:
-
Field Summary
Fields 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 TypeMethodDescriptionvoid
addDependencies
(ICacheEntry entry, IThingIDList thingIDs) Adds a list of dependencies to the entry.void
clearDependencies
(ICacheEntry entry) removed all dependencies for this entryvoid
invalidateByDep
(IThingID thingID) invalidates all entries that are dependent on this thing.int
invalidateByDepKey
(IThingID thingID, ICacheKey key, int invalFlags) generates a list of entries to invalidate based on the thingID, then filters that list via cache key.void
removeDependencies
(ICacheEntry entry, IThingIDList thingIDs) Removes specific dependenciesvoid
setAllDependencies
(ICacheEntry entry, IThingIDList thingIDs) Clears all dependencies, and then sets the list to thingIDsMethods 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
-
Method Details
-
setAllDependencies
Clears all dependencies, and then sets the list to thingIDs- Parameters:
entry
- entry of object to set deps onthingIDs
- array of thing ID's- Throws:
CacheException
- On invalid entry or DB error
-
clearDependencies
removed all dependencies for this entry- Parameters:
entry
- valid entry- Throws:
CacheException
- if invalid entry or DB error
-
addDependencies
Adds a list of dependencies to the entry.- Parameters:
entry
- valid entrythingIDs
- array of thingID- Throws:
CacheException
- on invalid entry or DB error
-
removeDependencies
Removes specific dependencies- Parameters:
entry
- valid entrythingIDs
- array of thingID's- Throws:
CacheException
- on invalid entry or DB error
-
invalidateByDep
invalidates all entries that are dependent on this thing. Note that this is potentially more expensive than invalidateByKey- Parameters:
thingID
- dependency- Throws:
CacheException
- on DB error
-
invalidateByDepKey
generates a list of entries to invalidate based on the thingID, then filters that list via cache key. Use ex. would be invalidating only 1 user's affected entries.- Throws:
CacheException
-