T - the type of the pooled objectpublic abstract class Recycler<T>
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Recycler.EnhancedHandle<T> |
static interface |
Recycler.Handle<T> |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Recycler() |
protected |
Recycler(int maxCapacityPerThread) |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor)
已过时。
Use one of the following instead:
Recycler(), Recycler(int), Recycler(int, int, int). |
protected |
Recycler(int maxCapacityPerThread,
int ratio,
int chunkSize) |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread)
已过时。
Use one of the following instead:
Recycler(), Recycler(int), Recycler(int, int, int). |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread,
int delayedQueueRatio)
已过时。
Use one of the following instead:
Recycler(), Recycler(int), Recycler(int, int, int). |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
get() |
protected abstract T |
newObject(Recycler.Handle<T> handle) |
boolean |
recycle(T o,
Recycler.Handle<T> handle)
已过时。
|
protected Recycler()
protected Recycler(int maxCapacityPerThread)
@Deprecated
protected Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor)
Recycler(), Recycler(int), Recycler(int, int, int).@Deprecated
protected Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread)
Recycler(), Recycler(int), Recycler(int, int, int).@Deprecated
protected Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread,
int delayedQueueRatio)
Recycler(), Recycler(int), Recycler(int, int, int).protected Recycler(int maxCapacityPerThread,
int ratio,
int chunkSize)
public final T get()
@Deprecated public final boolean recycle(T o, Recycler.Handle<T> handle)
ObjectPool.Handle.recycle(Object).protected abstract T newObject(Recycler.Handle<T> handle)
handle - can NOT be null.