public interface IDependentCache extends IDBCache
INVAL_KEYA, INVAL_KEYB, INVAL_KEYNAME, INVAL_PRIMARY, INVAL_SECONDARY
ID, ISCLUSTERED, MAX_SIZE
Modifier and Type | Method and Description |
---|---|
void |
addDependencies(ICacheEntry entry,
IThingIDList thingIDs)
Adds a list of dependencies to the entry.
|
void |
clearDependencies(ICacheEntry entry)
removed all dependencies for this entry
|
void |
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 dependencies
|
void |
setAllDependencies(ICacheEntry entry,
IThingIDList thingIDs)
Clears all dependencies, and then sets the list to thingIDs
|
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
void setAllDependencies(ICacheEntry entry, IThingIDList thingIDs) throws CacheException
entry
- entry of object to set deps onthingIDs
- array of thing ID'sCacheException
- On invalid entry or DB errorvoid clearDependencies(ICacheEntry entry) throws CacheException
entry
- valid entryCacheException
- if invalid entry or DB errorvoid addDependencies(ICacheEntry entry, IThingIDList thingIDs) throws CacheException
entry
- valid entrythingIDs
- array of thingIDCacheException
- on invalid entry or DB errorvoid removeDependencies(ICacheEntry entry, IThingIDList thingIDs) throws CacheException
entry
- valid entrythingIDs
- array of thingID'sCacheException
- on invalid entry or DB errorvoid invalidateByDep(IThingID thingID) throws CacheException
thingID
- dependencyCacheException
- on DB errorint invalidateByDepKey(IThingID thingID, ICacheKey key, int invalFlags) throws CacheException
CacheException