|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.cache.SoftReferenceRegister
public class SoftReferenceRegister
Manages Soft references, specifically for each facade type
| Constructor Summary | |
|---|---|
init(AbstractBaseFacade facade, EventManager eventManager, CacheMonitor cacheMonitor)
Constructor |
|
| Method Summary | |
|---|---|
void |
clearAllReferences()
clear and queue all the soft refrences stored in here |
private CacheMonitor |
getCacheMonitor()
|
private EventManager |
getEventManager()
|
private AbstractBaseFacade |
getFacade()
|
private struct |
getReferenceClassMap()
|
private any |
getReferenceQueue()
java.lang.ref.ReferenceQueue |
private numeric |
getStackCount()
returns the stack count |
private any |
getStackCountLocal()
|
private any |
getThread()
|
void |
reap(numeric secondLimit, [boolean yieldOnLoop='false'])
this has been seperated out, so the cf8 version can do this async |
any |
register(TransferObject transfer)
Registers a new TransferObject with the Handler, and returns a java.ref.softReference |
private void |
resetStackCount()
resets the stack cout to 0 |
private void |
setCacheMonitor(CacheMonitor cacheMonitor)
|
private void |
setEventManager(EventManager eventManager)
|
private void |
setFacade(AbstractBaseFacade Facade)
|
private void |
setReferenceClassMap(struct ReferenceClassMap)
|
private void |
setReferenceQueue(any ReferenceQueue)
|
private void |
setStackCountLocal(any StackCountLocal)
|
private void |
setThread(any Thread)
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(AbstractBaseFacade facade, EventManager eventManager, CacheMonitor cacheMonitor)
facade - The facade this SoftReferenceRegister is connected toeventManagercacheMonitor - The cache monitor| Method Detail |
|---|
public void clearAllReferences()
private CacheMonitor getCacheMonitor()
private EventManager getEventManager()
private AbstractBaseFacade getFacade()
private struct getReferenceClassMap()
private any getReferenceQueue()
private numeric getStackCount()
private any getStackCountLocal()
private any getThread()
public void reap(numeric secondLimit, [boolean yieldOnLoop='false'])
secondLimit - The second limit on reaping, 0 is unlimitedyieldOnLoop - whether or not to yield() at end of every looppublic any register(TransferObject transfer)
transfer - The transfer objectprivate void resetStackCount()
private void setCacheMonitor(CacheMonitor cacheMonitor)
cacheMonitorprivate void setEventManager(EventManager eventManager)
eventManagerprivate void setFacade(AbstractBaseFacade Facade)
Facadeprivate void setReferenceClassMap(struct ReferenceClassMap)
ReferenceClassMapprivate void setReferenceQueue(any ReferenceQueue)
ReferenceQueue - java.lang.ref.ReferenceQueueprivate void setStackCountLocal(any StackCountLocal)
StackCountLocalprivate void setThread(any Thread)
Thread
|
Transfer version 1.1 | ||||
| FRAMES | |||||