T - the type of the pooled objectpublic abstract class Recycler<T> extends 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) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
protected abstract T |
newObject(Recycler.Handle<T> handle) |
boolean |
recycle(T o,
Recycler.Handle<T> handle)
Deprecated.
|
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–2017 The Netty Project. All rights reserved.