T
- the type of the pooled objectpublic abstract class Recycler<T>
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
Recycler.Handle |
限定符 | 构造器和说明 |
---|---|
protected |
Recycler() |
protected |
Recycler(int maxCapacity) |
protected |
Recycler(int maxCapacity,
int maxSharedCapacityFactor) |
protected |
Recycler(int maxCapacity,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread) |
限定符和类型 | 方法和说明 |
---|---|
T |
get() |
protected abstract T |
newObject(Recycler.Handle handle) |
boolean |
recycle(T o,
Recycler.Handle handle) |
protected Recycler()
protected Recycler(int maxCapacity)
protected Recycler(int maxCapacity, int maxSharedCapacityFactor)
protected Recycler(int maxCapacity, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread)
public final T get()
public final boolean recycle(T o, Recycler.Handle handle)
protected abstract T newObject(Recycler.Handle handle)