T
- the type of the pooled objectpublic abstract class Recycler<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Recycler.Handle |
Modifier | Constructor and Description |
---|---|
protected |
Recycler() |
protected |
Recycler(int maxCapacity) |
protected |
Recycler(int maxCapacity,
int maxSharedCapacityFactor) |
protected |
Recycler(int maxCapacity,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread) |
Modifier and Type | Method and Description |
---|---|
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)
Copyright © 2008–2018 The Netty Project. All rights reserved.