public final class LooselyBoundedSLibraryObjectCache extends LibraryObjectCache
m_Configuration
Constructor and Description |
---|
LooselyBoundedSLibraryObjectCache(BoundedCacheConfiguration config,
S_LibrarySession session)
Construct a LooselyBoundedSLibraryObjectCache.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this cache.
|
Object |
find(Object id)
Gets an item from this cache.
|
CachePerformance |
getCachePerformance()
Gets the performance information for this cache.
|
Enumeration |
getElements()
Gets an Enumeration of the LibraryObjects in this cache.
|
void |
lock(Object id,
Object value)
Locks an item in this cache.
|
void |
markEntriesAsUntrusted()
Mark all PublicObject entries as untrusted.
|
void |
markEntryAsUntrusted(Object id)
Mark an entry as untrusted due to security changes for the specified
object.
|
void |
markFreeCancelled(Long id)
Respond to a FREE event that has been rolled back for the specified object.
|
void |
markFreeInitiated(Long id)
Respond to an uncommitted free operation.
|
void |
performNormalPurgeIfNeeded()
Purge Cache if a request for "normal" purge is indicated.
|
void |
performUrgentPurgeIfNeeded()
Purge Cache if a request for "urgent" purge is indicated
|
void |
put(Object id,
Object value)
Puts an item in this cache.
|
void |
remove(Object id)
Removes an item from this cache.
|
void |
resetCachePerformance()
Resets the performance information for this cache.
|
void |
setCacheConfiguration(CacheConfiguration config)
Alters the configuration of this cache.
|
getCacheConfiguration, reset
public LooselyBoundedSLibraryObjectCache(BoundedCacheConfiguration config, S_LibrarySession session) throws IfsException
config
- the configuration paramaters for the new cachesession
- the session contextIfsException
- if the operation failspublic void setCacheConfiguration(CacheConfiguration config) throws IfsException
setCacheConfiguration
in class Cache
config
- the cache configuration;
must be a BoundedCacheConfigurationIfsException
- if the operation failspublic CachePerformance getCachePerformance()
getCachePerformance
in class Cache
public void resetCachePerformance()
resetCachePerformance
in class Cache
public Object find(Object id) throws IfsException
find
in class Cache
id
- the item idIfsException
- if operation failspublic void remove(Object id) throws IfsException
remove
in class Cache
id
- the item idIfsException
- if operation failspublic void put(Object id, Object value) throws IfsException
put
in class Cache
id
- the item idvalue
- the itemIfsException
- if operation failspublic Enumeration getElements() throws IfsException
getElements
in class Cache
IfsException
- if operation failspublic void lock(Object id, Object value) throws IfsException
lock
in class BoundedCache
id
- the item idvalue
- the itemIfsException
- if the operation failspublic void performNormalPurgeIfNeeded()
performNormalPurgeIfNeeded
in class BoundedCache
public void performUrgentPurgeIfNeeded()
performUrgentPurgeIfNeeded
in class BoundedCache
public void markEntryAsUntrusted(Object id) throws IfsException
markEntryAsUntrusted
in class LibraryObjectCache
id
- the ID of the entryIfsException
- if the operation failspublic void markEntriesAsUntrusted() throws IfsException
Called whenever a session leaves admin mode, when a user is impersonated, or when an impersonation is cancelled.
markEntriesAsUntrusted
in class LibraryObjectCache
IfsException
- if the operation failspublic void markFreeInitiated(Long id) throws IfsException
This occurs during a transaction. If the transaction is committed,
a subsequent remove
will be issued for the object.
If instead the transaction is aborted,
a subsequent markFreeCancelled
will be issued for the object.
markFreeInitiated
in class LibraryObjectCache
id
- the item idIfsException
- if the operation failspublic void markFreeCancelled(Long id) throws IfsException
markFreeCancelled
in class LibraryObjectCache
id
- the item idIfsException
- if the operation failsCopyright © 2023. All rights reserved.