box.system.cache.store.concurrent.Callable interface">
|
ColdBox Platform - WireBox Version 1.2.0 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
wirebox.system.cache.store.ConcurrentStore
wirebox.system.cache.store.ConcurrentSoftReferenceStore
public class ConcurrentSoftReferenceStore
I am a concurrent soft reference object store. In other words, I am fancy!
| Constructor Summary | |
|---|---|
init(any<ICacheProvider> cacheProvider)
Constructor |
|
| Method Summary | |
|---|---|
any |
clear(any objectKey)
Clears an object from the storage pool |
void |
clearAll()
Clear all elements of the store |
private any |
createSoftReference(any objectKey, any target)
Create SR, register cached object and reference |
any |
get(any objectKey)
Get an object from cache |
any |
getQuiet(any objectKey)
Get an object from cache |
any |
getReferenceQueue()
Get soft reference queue object |
any |
getSoftRefKey(any softRef)
Get the soft reference's key from the soft reference lookback map |
any |
getSoftRefKeyMap()
Get the soft reference key map |
any |
lookup(any objectKey)
Check if an object is in cache |
void |
reap()
Reap the storage, clean it from old stuff |
void |
set(any objectKey, any object, [any timeout='0'], [any lastAccessTimeout='0'], [any extras='[runtime expression]'])
sets an object in the storage |
any |
softRefLookup(any softRef)
See if the soft reference is in the reference key map |
| Methods inherited from class wirebox.system.cache.store.ConcurrentStore |
|---|
expireObject, flush, getIndexer, getKeys, getPool, getSize, getStoreID, isExpired
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any<ICacheProvider> cacheProvider)
cacheProvider - The associated cache provider as wirebox.system.cache.ICacheProvider| Method Detail |
|---|
public any clear(any objectKey)
clear
in class
ConcurrentStore
objectKey - The object keypublic void clearAll()
clearAll
in class
ConcurrentStore
private any createSoftReference(any objectKey, any target)
objectKey - The value of the key pairtarget - The object to wrappublic any get(any objectKey)
get
in class
ConcurrentStore
objectKey - The key of the objectpublic any getQuiet(any objectKey)
getQuiet
in class
ConcurrentStore
objectKey - The key of the objectpublic any getReferenceQueue()
public any getSoftRefKey(any softRef)
softRef - The soft reference to checkpublic any getSoftRefKeyMap()
public any lookup(any objectKey)
lookup
in class
ConcurrentStore
objectKey - The key of the objectpublic void reap()
reap
in class
ConcurrentStore
public void set(any objectKey, any object, [any timeout='0'], [any lastAccessTimeout='0'], [any extras='[runtime expression]'])
set
in class
ConcurrentStore
objectKey - The object keyobject - The object to savetimeout - Timeout in minuteslastAccessTimeout - Idle Timeout in minutesextras - A map of extra name-value pairspublic any softRefLookup(any softRef)
softRef - The soft reference to check
|
ColdBox Platform - WireBox Version 1.2.0 | ||||
| FRAMES | |||||