public abstract class ObjectPoolList<T> extends ObjectPool<T>
keepThreshold| Constructor and Description |
|---|
ObjectPoolList() |
ObjectPoolList(int keepThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIn(T o) |
void |
checkInAll() |
T |
checkOut() |
protected abstract T |
create() |
int |
getCurrentSize() |
abstract void |
resetObject(T o) |
void |
setCurrentSize(int currentSize) |
int |
size() |
java.lang.String |
toString() |
getKeepThreshold, setKeepThresholdpublic ObjectPoolList()
public ObjectPoolList(int keepThreshold)
protected abstract T create() throws MaltChainedException
create in class ObjectPool<T>MaltChainedExceptionpublic abstract void resetObject(T o) throws MaltChainedException
resetObject in class ObjectPool<T>MaltChainedExceptionpublic T checkOut() throws MaltChainedException
checkOut in class ObjectPool<T>MaltChainedExceptionpublic void checkIn(T o) throws MaltChainedException
checkIn in class ObjectPool<T>MaltChainedExceptionpublic void checkInAll() throws MaltChainedException
checkInAll in class ObjectPool<T>MaltChainedExceptionpublic int getCurrentSize()
public void setCurrentSize(int currentSize)
public int size()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.