T - 池中的对象的类型
public abstract class Recycler<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Recycler.Handle<T> |
| Modifier | Constructor and Description |
|---|---|
protected |
Recycler() |
protected |
Recycler(int maxCapacityPerThread) |
protected |
Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor) |
protected |
Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread) |
protected Recycler()
protected Recycler(int maxCapacityPerThread)
protected Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor) protected Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread) public final T get()
@Deprecated public final boolean recycle(T o, Recycler.Handle<T> handle)
Recycler.Handle.recycle(Object) 。
protected abstract T newObject(Recycler.Handle<T> handle)
Copyright © 2008–2018 The Netty Project. All rights reserved.