Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.memory
Class SoftReferencePool<V,P>

java.lang.Object
  extended by com.liferay.portal.kernel.memory.SoftReferencePool<V,P>

public class SoftReferencePool<V,P>
extends Object


Field Summary
static int DEFAULT_IDLE_SIZE
           
 
Constructor Summary
SoftReferencePool(PoolAction<V,P> poolAction)
           
SoftReferencePool(PoolAction<V,P> poolAction, int maxIdleSize)
           
SoftReferencePool(PoolAction<V,P> poolAction, int maxIdleSize, boolean useWeakCounter)
           
 
Method Summary
 V borrowObject(P parameter)
           
 void returnObject(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IDLE_SIZE

public static final int DEFAULT_IDLE_SIZE
See Also:
Constant Field Values
Constructor Detail

SoftReferencePool

public SoftReferencePool(PoolAction<V,P> poolAction)

SoftReferencePool

public SoftReferencePool(PoolAction<V,P> poolAction,
                         int maxIdleSize)

SoftReferencePool

public SoftReferencePool(PoolAction<V,P> poolAction,
                         int maxIdleSize,
                         boolean useWeakCounter)
Method Detail

borrowObject

public V borrowObject(P parameter)

returnObject

public void returnObject(V value)

Liferay 6.1.2-ce-ga3