public class SoftReferencePool<V,P>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_IDLE_SIZE |
| Constructor and Description |
|---|
SoftReferencePool(PoolAction<V,P> poolAction) |
SoftReferencePool(PoolAction<V,P> poolAction,
int maxIdleSize) |
SoftReferencePool(PoolAction<V,P> poolAction,
int maxIdleSize,
boolean useWeakCounter) |
| Modifier and Type | Method and Description |
|---|---|
V |
borrowObject(P parameter) |
void |
returnObject(V value) |
public static final int DEFAULT_IDLE_SIZE
public SoftReferencePool(PoolAction<V,P> poolAction)
public SoftReferencePool(PoolAction<V,P> poolAction, int maxIdleSize)
public SoftReferencePool(PoolAction<V,P> poolAction, int maxIdleSize, boolean useWeakCounter)