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, setKeepThreshold
public ObjectPoolList()
public ObjectPoolList(int keepThreshold)
protected abstract T create() throws MaltChainedException
create
in class ObjectPool<T>
MaltChainedException
public abstract void resetObject(T o) throws MaltChainedException
resetObject
in class ObjectPool<T>
MaltChainedException
public T checkOut() throws MaltChainedException
checkOut
in class ObjectPool<T>
MaltChainedException
public void checkIn(T o) throws MaltChainedException
checkIn
in class ObjectPool<T>
MaltChainedException
public void checkInAll() throws MaltChainedException
checkInAll
in class ObjectPool<T>
MaltChainedException
public int getCurrentSize()
public void setCurrentSize(int currentSize)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.