|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.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 |
any |
get(any objectKey)
Get an object from cache. If its a soft reference object it might return a null value. |
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 |
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 |
any |
getpool()
Get the cache pool |
any |
getpool_metadata()
Get the cache pool metadata |
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 MyObject, [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)
objectKey
private any createSoftReference(any objectKey, any MyObject)
objectKey
- The value of the key pairMyObject
- The object to wrappublic any get(any objectKey)
objectKey
public any getMetadataProperty(any objectKey, any property)
objectKey
property
public any getObjectMetadata(any objectKey)
objectKey
public string getObjectsKeyList()
public any getReferenceQueue()
public numeric getSize()
public any getSoftRefKey(any softRef)
softRef
- The soft reference to checkpublic any getSoftRefKeyMap()
public any getpool()
public any getpool_metadata()
private boolean isSoftReference(any MyObject)
MyObject
- The object to testpublic boolean lookup(any objectKey)
objectKey
public void set(any objectKey, any MyObject, [any Timeout=''], [any LastAccessTimeout=''])
objectKey
MyObject
Timeout
- 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)
objectKey
property
value
public void setObjectMetadata(any objectKey, any metadata)
objectKey
metadata
private void setReferenceQueue(any ReferenceQueue)
ReferenceQueue
private void setSoftRefKeyMap(any SoftRefKeyMap)
SoftRefKeyMap
private void setpool(struct pool)
pool
public void setpool_metadata(struct pool_metadata)
pool_metadata
public boolean softRefLookup(any softRef)
softRef
- The soft reference to check
|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |