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) |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread,
int delayedQueueRatio) |
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.
use
ObjectPool.Handle.recycle(Object) . |
protected Recycler()
protected Recycler(int maxCapacityPerThread)
protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)
protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread)
protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread, int delayedQueueRatio)
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)
Copyright © 2008–2021 The Netty Project. All rights reserved.