public static final class LimitedPool.Sync<T> extends LimitedPool<T>
LimitedPool.ObjectFactory<T>, LimitedPool.Sync<T>
Constructor and Description |
---|
Sync(int maxCapacity,
LimitedPool.ObjectFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
T |
alloc() |
void |
recycle(T t) |
public Sync(int maxCapacity, LimitedPool.ObjectFactory<T> factory)
public T alloc()
alloc
in class LimitedPool<T>
public void recycle(T t)
recycle
in class LimitedPool<T>