|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.collections.AbstractBaseSemiSoftRefObjectPool
public class AbstractBaseSemiSoftRefObjectPool
A object pool that maintains two collections, one hard reference, one soft reference
| Constructor Summary | |
|---|---|
init(numeric hardReferenceAmount, JavaLoader javaLoader)
Constructor |
|
| Method Summary | |
|---|---|
private any |
getHardQueue()
org.apache.commons.collections.UnboundedFifoBuffer |
private numeric |
getHardReferenceAmount()
|
private any |
getNewObject()
virtual method: returns the new CFC to repopulate the pool |
private any |
getReferenceQueue()
java.lang.ref.ReferenceQueue |
private any |
getSoftQueue()
org.apache.commons.collections.UnboundedFifoBuffer |
any |
pop()
pops an objects outta the queue |
any |
popSoftQueue()
pops an object off the soft queue if one exists, otherwise returns 'false' |
void |
push(any object)
Pushes an object onto the queue |
private void |
reap()
reaps the collected objects out of the pool |
private void |
refill()
refill the hard cache |
private void |
setHardQueue(any HardQueue)
|
private void |
setHardReferenceAmount(numeric hardReferenceAmount)
|
private void |
setReferenceQueue(any ReferenceQueue)
|
private void |
setSoftQueue(any SoftQueue)
|
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(numeric hardReferenceAmount, JavaLoader javaLoader)
hardReferenceAmount - The amount of hard references to keepjavaLoader - The java loader for the apache commons| Method Detail |
|---|
private any getHardQueue()
private numeric getHardReferenceAmount()
private any getNewObject()
private any getReferenceQueue()
private any getSoftQueue()
public any pop()
public any popSoftQueue()
public void push(any object)
object - the object to push onprivate void reap()
private void refill()
private void setHardQueue(any HardQueue)
HardQueue - org.apache.commons.collections.UnboundedFifoBufferprivate void setHardReferenceAmount(numeric hardReferenceAmount)
hardReferenceAmountprivate void setReferenceQueue(any ReferenceQueue)
ReferenceQueue - java.lang.ref.ReferenceQueueprivate void setSoftQueue(any SoftQueue)
SoftQueue - org.apache.commons.collections.UnboundedFifoBufferprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Transfer version 1.1 | ||||
| FRAMES | |||||