|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.cache.ObjectPool
public class ObjectPool
I manage persistance for objects.
| Constructor Summary | |
|---|---|
init()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
clearKey(string objectKey)
Clears a key from the cache |
private any |
createSoftReference(any objectKey, any MyObject)
Create SR, register cached object and reference |
void |
expireObject(any objectKey)
Set an object for expiration |
any |
get(any objectKey)
Get an object from cache |
any |
getMetadataProperty(any objectKey, any property)
Get a metadata property for a specific cache entry |
any |
getObjectMetadata(any objectKey)
Get a metadata entry for a specific cache entry |
string |
getObjectsKeyList()
Get the cache's object entries listing |
any |
getPool()
Get the cache pool |
any |
getPoolKeys()
Get all the pool keys |
any |
getPoolMetadata()
Get the cache pool metadata |
any |
getReferenceQueue()
Get ReferenceQueue |
numeric |
getSize()
Get the cache's size in items |
any |
getSoftRefKey(any softRef)
Get the soft reference's key from the soft reference lookback map |
any |
getSoftRefKeyMap()
Get SoftRefKeyMap |
private boolean |
isSoftReference(any MyObject)
Whether the passed object is a soft reference |
boolean |
lookup(any objectKey)
Check if an object is in cache, it doesn't tell you if the soft reference expired or not |
void |
set(any objectKey, any object, [any timeout=''], [any lastAccessTimeout=''])
sets an object in cache |
void |
setMetadataProperty(any objectKey, any property, any value)
Set a metadata property for a specific cache entry |
void |
setObjectMetadata(any objectKey, any metadata)
Set the metadata entry for a specific cache entry |
private void |
setReferenceQueue(any ReferenceQueue)
Set ReferenceQueue |
private void |
setSoftRefKeyMap(any SoftRefKeyMap)
Set SoftRefKeyMap |
private void |
setpool(struct pool)
Set the cache pool |
void |
setpool_metadata(struct pool_metadata)
Set the cache pool metadata |
boolean |
softRefLookup(any softRef)
See if the soft reference is in the key map |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
public boolean clearKey(string objectKey)
objectKeyprivate any createSoftReference(any objectKey, any MyObject)
objectKey - The value of the key pairMyObject - The object to wrappublic void expireObject(any objectKey)
objectKey - The object keypublic any get(any objectKey)
objectKeypublic any getMetadataProperty(any objectKey, any property)
objectKeypropertypublic any getObjectMetadata(any objectKey)
objectKeypublic string getObjectsKeyList()
public any getPool()
public any getPoolKeys()
public any getPoolMetadata()
public any getReferenceQueue()
public numeric getSize()
public any getSoftRefKey(any softRef)
softRef - The soft reference to checkpublic any getSoftRefKeyMap()
private boolean isSoftReference(any MyObject)
MyObject - The object to testpublic boolean lookup(any objectKey)
objectKeypublic void set(any objectKey, any object, [any timeout=''], [any lastAccessTimeout=''])
objectKey - The object keyobject - The object to savetimeout - Timeout in minutes. If timeout = 0 then object never times out. If timeout is blank, then timeout will be inherited from framework.lastAccessTimeout - Timeout in minutes. If timeout is blank, then timeout will be inherited from framework.public void setMetadataProperty(any objectKey, any property, any value)
objectKeypropertyvaluepublic void setObjectMetadata(any objectKey, any metadata)
objectKeymetadataprivate void setReferenceQueue(any ReferenceQueue)
ReferenceQueueprivate void setSoftRefKeyMap(any SoftRefKeyMap)
SoftRefKeyMapprivate void setpool(struct pool)
poolpublic void setpool_metadata(struct pool_metadata)
pool_metadatapublic boolean softRefLookup(any softRef)
softRef - The soft reference to check
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||