public final class ConnectedLibraryObjectCache extends LibraryObjectCache
A ConnectedLibraryObjectCache is just a subclass of Cache, and not BoundedCache - even though the cache entries are actually bounded by the underlying BoundedLibraryObjectCache.
Note: this class requires JRE 1.2.2 or higher.
| Modifier and Type | Field and Description |
|---|---|
protected BoundedLibraryObjectCache |
m_ServerCache
The server-side BoundedLibraryObjectCache that this cache is connected to.
|
protected LibrarySession |
m_Session
The server-side BoundedLibraryObjectCache that this cache is connected to.
|
m_Configuration| Constructor and Description |
|---|
ConnectedLibraryObjectCache(BoundedCacheConfiguration configuration,
S_LibrarySession ssession,
LibrarySession session)
Construct a ConnectedLibraryObjectCache
|
| 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 itemKey)
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 configuration)
Alters the configuration of this cache.
|
getCacheConfiguration, resetprotected BoundedLibraryObjectCache m_ServerCache
protected LibrarySession m_Session
public ConnectedLibraryObjectCache(BoundedCacheConfiguration configuration, S_LibrarySession ssession, LibrarySession session)
configuration - the configuration paramaters for the new cachepublic final void setCacheConfiguration(CacheConfiguration configuration) throws IfsException
setCacheConfiguration in class Cacheconfiguration - the configuration parameters; must be a
BoundedCacheConfigurationIfsException - if the operation failspublic final Object find(Object id) throws IfsException
find in class Cacheid - the item idIfsException - if operation failspublic final void remove(Object id) throws IfsException
remove in class Cacheid - the item idIfsException - if operation failspublic final void put(Object id, Object value) throws IfsException
put in class Cacheid - the item idvalue - the itemIfsException - if operation failspublic Enumeration getElements() throws IfsException
getElements in class CacheIfsException - if operation failspublic void lock(Object id, Object value) throws IfsException
lock in class BoundedCacheid - the item idvalue - the itemIfsException - if the operation failspublic void performNormalPurgeIfNeeded()
performNormalPurgeIfNeeded in class BoundedCachepublic void performUrgentPurgeIfNeeded()
performUrgentPurgeIfNeeded in class BoundedCachepublic void markEntryAsUntrusted(Object itemKey) throws IfsException
markEntryAsUntrusted in class LibraryObjectCacheitemKey - 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 LibraryObjectCacheIfsException - 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 LibraryObjectCacheid - the item idIfsException - if the operation failspublic void markFreeCancelled(Long id) throws IfsException
markFreeCancelled in class LibraryObjectCacheid - the item idIfsException - if the operation failspublic final CachePerformance getCachePerformance()
getCachePerformance in class Cachepublic final void resetCachePerformance()
resetCachePerformance in class CacheCopyright © 2025. All rights reserved.