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
MaltChainedExceptionpublic abstract void resetObject(T o) throws MaltChainedException
MaltChainedExceptionpublic abstract T checkOut() throws MaltChainedException
MaltChainedExceptionpublic abstract void checkIn(T o) throws MaltChainedException
MaltChainedExceptionpublic abstract void checkInAll() throws MaltChainedException
MaltChainedExceptionCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.