com.liferay.portal.kernel.memory
Class SoftReferencePool<V,P>
java.lang.Object
com.liferay.portal.kernel.memory.SoftReferencePool<V,P>
public class SoftReferencePool<V,P>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_IDLE_SIZE
public static final int DEFAULT_IDLE_SIZE
- See Also:
- Constant Field Values
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)
borrowObject
public V borrowObject(P parameter)
returnObject
public void returnObject(V value)