Class SoftReferencePool<V,P>

java.lang.Object
com.liferay.petra.memory.SoftReferencePool<V,P>

public class SoftReferencePool<V,P> extends Object
  • Field Details

  • Constructor Details

    • 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 Details

    • borrowObject

      public V borrowObject(P parameter)
    • returnObject

      public void returnObject(V value)