public abstract class ObjectPool<T> extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
keepThreshold |
Constructor and Description |
---|
ObjectPool() |
ObjectPool(int keepThreshold) |
Modifier and Type | Method and Description |
---|---|
abstract void |
checkIn(T o) |
abstract void |
checkInAll() |
abstract T |
checkOut() |
protected abstract T |
create() |
int |
getKeepThreshold() |
abstract void |
resetObject(T o) |
void |
setKeepThreshold(int keepThreshold) |
protected int keepThreshold
public ObjectPool()
public ObjectPool(int keepThreshold)
public int getKeepThreshold()
public void setKeepThreshold(int keepThreshold)
protected abstract T create() throws MaltChainedException
MaltChainedException
public abstract void resetObject(T o) throws MaltChainedException
MaltChainedException
public abstract T checkOut() throws MaltChainedException
MaltChainedException
public abstract void checkIn(T o) throws MaltChainedException
MaltChainedException
public abstract void checkInAll() throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.