Package deltix.qsrv.hf.codec.cg
Class ObjectPool<T>
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.ObjectPool<T>
-
- Direct Known Subclasses:
CharSequenceListPool
,CharSequencePool
,ReflectionObjectPool
,StringBuilderPool
public abstract class ObjectPool<T> extends java.lang.Object
Pool of objects of the same type. Thread-unsafe. Reset makes all allocated instances available again.
-
-
Constructor Summary
Constructors Modifier Constructor Description ObjectPool()
protected
ObjectPool(int capacity)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
borrow()
abstract T
newItem()
void
reset()
protected void
resetItem(T item)
-